Get format from accept headers. refs #19412
Do not use xml format. refs #19412
Merge pull request #28 from picturae/19412

Issue 19412. Consider accept headers