Advancing big refactoring, sensorino protocol, json and energy management completed