Added battery functions

Also cleaned code and moved app drawer effect from the main loop to a
function (appdrawericon).