Add JSON error returns.
Added tests for search controller.
JSON support for search controller.

IMHO, this should go away anyway - jXAPI & Overpass are far better
for this sort of querying.
JSON support for capabilities.
Added JSON support for changes call.