Added user model and logout action
Added route to logout action
Added login form, some refactoring
Fixed bug in UserIdentity
Login button renamed
Added register link
Added logout action logic
Redirect after logging out to login page
Redirects improvements
Fixed some issues, added register view
Added access check for the main page
Fixed registration problems
Removed unused code from .htaccess
Changed access rules
Added layout
Added view for main
Added AJAX get_companies action
Merge pull request #1 from CyberROFL/dev-user

Merge common & user