Frameworks: Optimize more and fixes

Batterybar this time

- unregister observe
- fix another old old glitch in center mode
- code cleanup

cheers

Change-Id: Icddcfe7664b24dfb54ea45c34ce1b179fc368ef2