Add /ping url handler to server

When calling this url, the server will return a JSON with the info on
the request (url, post data, headers). This allows simple test of the
data sent to the server from the tests.
If also supports JSONP when url param jsonP is present in the request.