Merge pull request #32 from brianhanifin/master

travis.yml: removed unused gitter.im hook
initial hook for basic get settings api
made api work as a nested set of routes
port some code over from @brianhanifin's branch, basic impl for /entries and /entries/current
added support for /entries/:id and /entries?count=X; also some basic exception handling
Merge pull request #9 from nightscout/feature/base-api

Feature/base api
HTTP Header Authorization

Wrap protected functions with: if (verifyAuthorization(req, res)) {}
Merge pull request #36 from brianhanifin/feature/base-api

Added HTTP Header Authorization
Auth: Added undefined validation
Auth: Added undefined validation
Merge pull request #37 from brianhanifin/feature/base-api

Auth: Added undefined validation
clean up mongo connection and utils; pass access to the settings collection to the api
Merge branch 'feature/base-api' of github.com:nightscout/cgm-remote-monitor into feature/base-api
Cleanup / optimization
Respecting my ABCs

aka moving /settings to bottom
removed some info's
Merge branch 'feature/base-api' of github.com:nightscout/cgm-remote-monitor into feature/base-api
package.json: added license & description
env variables, simple shared secret, demo auth

This sets up two additional API endpoints explicitly used for testing.
Also, constrain all parsing of environment variables to a single
location.

This change also creates no API at all unless there is an API secret
defined.

Also the API_SECRET is really just a shared key private key, we
actually use the sha1 sum digest of the key.
don't even create the api unless we have a secret created; some clean up