Added ability to log the battery level continuously. Added compile-time option #define USE_LIBNOTIFY to post a low-battery warning with libnotify.