The Powernet Crusade

Ports additional powernet changes from /tg/, mainly concerning the SMES, machine processing, and area power updates.

Our APC load balancing is again a victim but the current processing is more release-friendly than my previous attempt. My previous attempt worked fine as long as there was enough power. If not, things got extreme fast.
Also aware that one (autoflag != 0) check is lost.

Will continue work on correcting this.
There's no code highlighting but they are commented out. Mostly kept them for reference to let me remember which one was named what. Not necessarily needed anymore.