ensure indexes on the date, type, and sgv fields for the entries collection at startup
fix tests
renamed entries.api() to entries.storage(); renamed entriesAPI to entriesStorage; also ensure indexes for treatments and devicestatus collections
Merge pull request #210 from nightscout/wip/indexes

ensure indexes on the date, type, and sgv fields at startup
fixed type when creating the pebble endpoint
detect deployed git HEAD in azure

When deployed on MS azure, the available git commit used to deploy the
software is available in the SCM_COMMIT_ID environment variable.
We encourage all hosting providers to provide some similar facility to
avoid spawning spurious processes.

Thanks to @shanselman for reminders and pointers to the fix.
Merge remote-tracking branch 'upstream/dev'
Merge remote-tracking branch 'upstream/wip/azure/git-head'