Add logging for almost all exceptions caught in views

Also, disable logging for tests.
Merge pull request #194 from chrismckinnel/logging-on-exception

Add logging for almost all exceptions caught in views