More reasonable responses in JSON API.
Merge pull request #31 from mikewadsten/master

JSON API: Detect if request was a search query, and if it was, return empty array instead of error.