Add a few unit tests as well as integration tests that cover almost all views. Also fixed a lot of HTML validator errors.