Detect when paramedic is run from /foo/_plugin/paramedic/, and allow elasticsearch_url to be set accordingly.
Factor out href extraction and string conversion

Closes #6