Improved global submitted text sanitization and formatting.

Also removed reliance on django.contrib.markup, which is gone in 1.6