rack-mini-profiler should use Rails URL helpers when running under rails

When running under Rails, rack-mini-profiler should use the Rails
`#url_for` helper in order to correctly construct the path to the
profiler javascript when in a Rails engine context where SCRIPT_NAME is
inappropriate.

Fixes #25