Use es6 Promise 

Added a grunt jasmine-server for development

Changed the jquery integration test to a more generic thenable test. I dont think db.js is compatible with jquery promise anymore because jquery uses done instead of then.