Switch to the django messages framework

In order to adjust the unit tests properly, I had to create a custom
TestCase class with three new assert functions to cover testing of the
messages. The custom class is taken from this link:
http://stackoverflow.com/questions/2897609/how-can-i-unit-test-django-messages