Return JSON to naive HTTP clients like browsers or curl.
Merge pull request #114 from coderanger/master

Return JSON to naive HTTP clients like browsers or curl.