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

Issue 19412. Use client accept headers for return format in the api