Add support for preventing system sleep on battery
Let battery assertion be removed
Hook up metatable properly