Added tests for ES6 Promises.

Removed jQuery style Deferred Object. This is replaced by a pollyfil
for ECMAScript 6 Promises. The XHR object replaces the earlier Ajax
method, but now returns an ES6 compatible Promise.