Create energy.lua

Added first revision of Energy.lua
scanForBatteries() should be implemented once we decide on how it will work.