Added home controller and session index. Some refactoring