Untested search call.
Get all /api/ calls on the web interface to have a json content type

since all the api calls will be returning json anyway, I might as well get the
faf out of the way and write a bit of middleware to do it for me instead of
doing it in every call.