Add support for get/set charge percent. Track last refresh time. Minor cleanup.