Added MainView class to control main page flow. It's based on Backbone
view concept.