Spike/api hyperagent

https://www.openproject.org/work_packages/8319
https://www.openproject.org/work_packages/11927
point taken. be prepared for whitespace from me sometimes too as the whitespace plugin doesn't work in sublime text 3 on my machine:(