Add promise support to dpd.js

I added promise support to dpd.js

Every ajax function will now return a promise that can be resolved with .then()
Includes the tiny https://github.com/cburgmer/ayepromise library from @cburgmer

If this is accepted then I'll update the documentation too.