Battery widget

Not functional yet, but opening a pull request to track down the problems