Fix pep8 lint
Split home view into a context builder and view fn

So that the context builder can be tested easily.
Add tests for home view
Merge pull request #314 from steventlamb/ops

Ops