Fixes bug 843867 - Added a JSON server status endpoint.

@lonnen r?

I am mainly concerned about the fact that I am changing what is returned by this page: it used to be the data modified to fit our usage, and now I return directly what the middleware returns. Is that a problem? Do we know of anyone using that service?