Added more index page functionalities and passing local variables to layouts. Debugging rspec failures associated with layouts.;