fixed Flash-messages not pickled properly bug
now flash messages are stored as JSON data instead of pickled objects
django 1.6 compat refactoring