Refactor views

This branch is based off the `prettify-navigation-on-search-results-page` branch used in #9.

My motivation for making these changes was because I want to introduce an un-categorized transactions view without having to duplicate more code.