Added tests for cpu
Added normalizing based on RRD datasource type

Also some minor improvements to converting dict
to string