Added Energy.lua

Added starter energy API
Merge branch 'dev' of github.com:alex-lawson/sb-automation into dev
fixed lamps not retaining state after save/load
fixed bug in lamp initialization
fixez for bugz in lampz