Support different base api

Fixes #7
maybe we can make this private.... and rename BASE_URL to PUBLIC_BASE_URL ... or HOSTED_BASE_URL...or something to suggest that BASE_URL is not the url in used, but some default constant