Handle Rails apps running on relative root

rack-livereload was assuming that the rack app is running on the domain root. This isn't always the case, so this commit handles Rails apps running on a relative root. It's specific to Rails, so I'm not sure if it's something you're interested in for rack-livereload.