added the linux implementation to the battery plugin

I've just completed the Linux implementation to the battery plugin and tested it locally, it worked okay.