Bug 973436 - Refactor the battery panel using AMD modules

http://bugzilla.mozilla.org/show_bug.cgi?id=973436