Terminal Powernet Check

-Makes sure terminal is connected to powernet before deciding to charge. Shamelessly stolen from apc.dm