Add support for baseUrl

Fixes #6.