Create energy_manager.py

This code is written to be executed on a beaglebone black. The data logging threads have been tested and debugged however the switching thread, which should be modified based on the hardware, has not.