DEMO: cors, login/logout, ui-router, restangular