Add plain text and xml formats

XML support has needed to be added for a while and this makes progress towards SOAP support (#57)