Added Energy API

Adds energy.lua to scripts