Implement a XHR proxy to notify on requests done
Pull out testHelper, remove callback style
Refactor assertions for errors
Pull out modules from util