Extend Angular.js Mocks to emulate backend, intercepting http requests with $httpBackend.when()