Fix for failing unit tests in ViewClientController

The fixes included the rename of a mis-named variable and made the mock $http service call return a deferred promise generated from the $q service (which has been injected)

The controller in question does seem to have very low coverage, I might have a go at impoving that on the weekend if I have a bit of time