Base URL option

This PR adds a new option to the CLI and API that allows a specific base URL to be specified in [node.js](http://nodejs.org) environments to avoid relative URLs from only being resolved to file paths.

*This feature does __not__ work in the browser... yet(?)*