Added support for custom base url
Merge pull request #1 from davidrs/master

Added support for custom base url