Waiting for user data to load before showing settings

Fixes #1059.
It's used in flash-message-user-data-loading-failed.html. This flash message will be visible in every state that uses FlashMessages, so I decided to attach this method to $rootScope.