Moved energy interfaces into a api

Signed-off-by: Anthony Anderson <LordIllyohs@gmail.com>