Differenciate batteries and AC

Provide a data structure for PowerSupply and functions for AC or battery
management.