Well. It turns out I was wrong plain and simple. Devs just implemented a check temperature command.
To use it one needs to upgrade firmware. The command to upgrade to latest firmware is:
chmod -x rpi-update
Then to check temperature, the following command:
I was only around 70 C. 85 C is considered bad.
So after some more digging I noticed a post from dom.
The resets was caused by a safety mechanism in the Broadcom chip due to overcurrent.
Disabled that in config.txt and no more resets
This is my (hope to be) final config.txt