correctly get the uri base

the query string was not being accounted for when getting the base, thus urls with a query string were not being returned correctly.
add a test for spider::getUriBase()
Merge pull request #8 from mfairchild365/master

Correctly get the base path of uris with a query string