fixed issues when running with RAILS_RELATIVE_URL_ROOT 

fixed regression in grack auth when running with RAILS_RELATIVE_URL_ROOT
fixed path extraction for git tree browsing with RAILS_RELATIVE_URL_ROOT