fix incompatibility with django 1.4

User.message_set is removed in Django 1.4 which result in exception:
'User' object has no attribute ''message_set"

The messages framework should be used instead.