cleanup, use strict everywhere
add some tests for the API
Merge branch 'wip/api-modules' of github.com:nightscout/cgm-remote-monitor into bewest/api/create-entries
Merge pull request #45 from nightscout/wip/api-modules

merging wip/api-modules