Convert to npm and CommonJS

Remove Bower and access to window for dependencies.
Update dependencies
Fix readme code block
Lock down dependencies
Merge pull request #26 from tidepool-org/nico/workflow

Convert to npm and CommonJS