Initial refactor to handle tokens in initial request instead of only via messages and adds intermediate loading template for pages that require user and don't have token on initial request