Domain as settable variable

Added API domain address as settable variable