framework: Battery bar (1/2)

* Patch inspired by MIUI and originally ported by David Morgan / @Spitemare
* as a extra feature for custom CyanogenMod 7 ROMs.  Patch has been adapted
* to work better on SaberMod.  Much of the work was done by Daniel Nilsson / @syaoran12
* Patch is nearly identical in nature to how Dan has writen it, with a few
* minor changes in removing the option to have centered bar, which doesn't
* seem to work very well on some devices like the Nexus 7 (grouper).