Move (almost all) electrical net commons to "power.h".

Compile and run on OS X O.K.