Fix authorization persistence and move js/partials to app folder.