allowing the 'ws-server' to process plain http GET requests

This is a port of the changes proposed in https://github.com/aphyr/riemann/pull/422

I've switched the uri's to /index and the 'q' parameter is now 'query' to be consistent with the existing websockets uris.

provides:
    GET /index
    GET /index/{host}
    GET /index/{host}/{service}

It's not 100% consistent yet, there is some work I need todo to retrofit some of the new helpers into the websocket handlers.

Discriminating between ws and plain http requests on the basis of URI is probably not ideal. I suggest leaving the router unchanged, and checking whether the request is a websockets request in the handler.