Detect when paramedic is run from /foo/_plugin/paramedic/, and set elasticsearch_url accordingly.

I have elasticsearch running behind a proxy for security reasons. In my setup, I access elasticsearch at http://server:port/foo/, and paramedic at http://server:port/foo/_plugin/paramedic/. With these small changes, paramedic handles my use case out of the box.