Add keepalive to grunt file for test server to work
Remove Jquery Promise and replaced with es6 Promise

- make sure all test pases except jquery integration.
- when es6 Promise.promise was parsed in to $.when , it did not wait for
  promise to resolve and return the value