Unify RailsBaseURI and RackBaseURI. Fixes issue #882.