Completely removed all dependencies on when.js,

in favor of es6 promises.