Fixed OSX battery status when just plugged.
Logging on power trigger, for debugging.
Added '-a' switch to allow two instances of the agent to run in paralell.
Also skip pid check when running in console mode.