Allow render to return proper XHTML valid content type when requested

Considering the HTML5 specification allows 2 different content-type headers to be specified[1], I added a patch to allow the user to explicitly specify XHTML (application/xhtml+xml) instead of HTML (text/html).

[1] https://developer.mozilla.org/en/docs/XHTML