Make api uri and domain dynamic

Fixes #11