Add battery stat directive and add websocket message output to console..