Added support for serialization and deserialization of the Energy Model
Created by: johnny90
This is a first step towards making new devices work out of the box (#425 (closed)). Take the Energy Model fetched from the target and transform it into a json file.