validation re-work to dbnew.
Fix ns issue.
Fixup some more compilation issues.
wip: compiles now. batch checks need rework too.
Further migration to new db.
Fix resetting of errors/events columns.
Remove most of querier/commander from measurements api.
Use dbnew only.
Remove querier/commander altogether.
wip: total kwh
Tidy up.
Merge pull request #29 from MastodonC/feature/validation-rework-dbnew

validation re-work to dbnew.