HomeCtrl/LoginCtrl: modified to work with ui-router

* changed $location => $state

* change #path() => #transitionTo()
app/js/app.js: updated routes for ui-router

* changed $routeProvider to $stateProvider/$urlRouterProvider