Use $http instead of dpd.js
Remove $apply in XHR callbacks

These aren't needed when using Angular's $http.
Add variable for the dpd base path

This will be used for the actual deployment.