Changes to enable XML Output Formatters.

Functional tests for Output Formatters are not a part of this PR. Will follow up with Functional Tests after @harshgMSFT's conneg check-in.
This isn't thread-safe. Also a bad idea to mutate instance state based on per-request data.