Registration tests 2

Setup mocking http requests.
Write tests for username availability.
The last commit contains some smelly configuration that is required to use ```$httpBackend```.
We should try to find a way around https://github.com/kbaltrinic/http-backend-proxy/issues/1#issuecomment-53507699.
This is causing GET requests for templates to fail and attempting to ```passThrough()``` these requests, because they occur before the HttpBackend can be injected.