add json and xml responses using accept header
update docs
Merge pull request #1 from jakerobinson/json

Json