Mark content from XML as safe in template

Otherwise, escapes these. The textarea XML and the text from the XML
are marked as safe in the template.
Remove urllib2 remnant