Added support for getting path relative to site

This was my test suite:
        "http://www.google.com/foobar",
        "http://www.google.com/foobar/foobim/foobol",
        "www.google.com/alvin?h=5",
        "www.google.com/alex/hooper/j?h=2",
        "www.google.com",
        "http://www.google.com",