Ability to specify custom URL

If you have a custom URL, it wasn't possible to use the library.  I created the tests, but didn't fully test them:)