django middleware: session backed messaging

This basically takes the ideas from the patches on ticket 4604 but puts them into middleware instead of aiming at a modification to core.

DjangoSnippet 1002

I added optional message type passing so you can display them differently.

notifications-example.png