Code review by Mike Kolganov
Refactoring. main_page_controller renamed to pages_controller.
Refactoring in process
Refactoring. Some code moved from sessions_controller.rb to user.rb
Some fixes. Refactoring.
Refactoring