Improved user authentication code.
Merge remote-tracking branch 'extendedmind/master'
Fixed html5 input bug in LoginSpec e2e test.
Fixed conflicts.
Fixed e2e tests. Added 'page not found' html page and controller. 'locationChange' saves next path where 'loginSuccess' signal redirects afterwards.
User is redirected to requested page after successful login. Some fixes in LoginSpec e2e tests.