Guess 'base_url'

Use the current URL as 'base_url' if it isn't provided
Merge pull request #125 from crodas/guess_base_url

Guess base url