[applets/batterymonitor] Fix it, pt.1: code style, imports and cleanup
Re-shuffled batch of commits from my patch set for the «Battery & Brightens» applet.
These are only the first steps, but next chunks are going to contain much more involved changes.
Edited by ivan tkachenko