Some optimizations

I'd really like to catch up with the project - specially the client while I don't have no hardware yet. To be able to actually test what I'm doing I'd ask you to provide some sample data for [what gets fetched via ajax](https://github.com/pex/smartMeter/blob/optimization/client/getEnergyObject.js#L62).