wip add csv format for profiles endpoint
wip - explode nested items and associations in csv

NOTE: there are still a few bugs:
- we want strings and not keywords as keys for the csv export
- the order of the attributes seems still casual
wip - use names, not keywords...

...  as attribute names in the CSV export
complete the contextual data schema
tidy up parens
Merge branch 'master' into feature/profiles_csv

* master: (32 commits)
  Rename some functions.
  Keep old metadata and add new reading-metadata for measurements.
  Update cron jobs.
  wip: create calculated sensors from templates.
  Turn vol->kwh calc into a job.
  Add metadata to each summed up measurement.
  wip: sensor naming
  Fix typo.
  Convert to co2, add pipeline and repl methods.
  Fix conversions.
  Tidy up and prepare for co2 calcs.
  Total kWh
  Calc datasets dev sketch,
  Tidy up.
  wip: total kwh
  Remove querier/commander altogether.
  Use dbnew only.
  Remove most of querier/commander from measurements api.
  Fix resetting of errors/events columns.
  Further migration to new db.
  ...

Conflicts:
	src/kixi/hecuba/api/profiles.clj
Merge branch 'feature/profiles_csv'

* feature/profiles_csv:
  tidy up parens
  complete the contextual data schema
  wip - use names, not keywords...
  wip - explode nested items and associations in csv
  wip add csv format for profiles endpoint