Registration tests 2

Abstract $http request with a module that can be mocked.
Setup mocking stellarAPI calls.
Write tests for username availability.