Added home.html template. Refactored home page test case. Refactored home view.