added error message on login if the proxy is unavailable

moved is user logged in check into service method and have ctr-index call it
if it fails to find the proxy -> the proxy is down
else continue as before

![screen shot 2014-07-23 at 4 53 46 pm](https://cloud.githubusercontent.com/assets/3188890/3680093/79d90bc6-12ab-11e4-9074-0561b82a4ac9.png)