Add basic XML response support

Add basic contentType negotiation between text/xml and application/json. Very basic. The result should contain a special _contentType field containing the mime-type to return.
Added a special version of jstoxml to support easy xml serialization. jstoxml is optional and existing JSON-only API should not be broken.