Added a battery plugin. Documentation to follow.