Bug/2 energy manager does not implement the last w3c specification

This pull request is for supporting the new navigator.getBattery method:

https://developer.mozilla.org/en-US/docs/Web/API/Navigator.getBattery

in the EnergyManager.