Use request.env['SCRIPT_NAME'] instead of ENV['RAILS_RELATIVE_URL_ROOT']

RAILS_RELATIVE_URL_ROOT is deprecated and doesn't have to work with
newer Rails apps
Merge pull request #80 from iNecas/fix_rails_relative_url_root

Use request.env['SCRIPT_NAME'] instead of ENV['RAILS_RELATIVE_URL_ROOT']