fix relative_url_root configuration on rails 3.2

removes dependency on ENV['RAILS_RELATIVE_URL_ROOT'] completly
remove ENV['RAILS_RELATIVE_URL_ROOT'] usage from source code
Merge pull request #2008 from pitr-ch/quick-fix/relative-url

fix relative_url_root configuration on rails 3.2