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