PSR1/2 formatting
Merge branch 'psr-formatting' into awaiting-prs
Allow sending options in sendResponse. For XML output format, defaultKey and rootKey may be supplied as options