Changed name of role in application.
re #8015 added user logout
re #7975 - added flash message style, create one layout for all templates, refactoring
re #7871 - connect templates with data from database