Replace router with ui-router; make login page stand-alone