Spike/api hyperagent

https://www.openproject.org/work_packages/8319
https://www.openproject.org/work_packages/11927
``fetch: $q.when(function(){ return { id: workPackageId } })`` should do the same