Allow disabling the automatic parsing of responses as XHTML.

For example, the CSRF failure message is not valid XHTML, it's hard-coded
so we can't override it in our app, and being forced to parse it as XHTML
fails and throws a parse exception. Disabling this exception allows more
meaningful test results in case of CSRF failures.