Added messaging middleware to make django 1.4/1.5 happy