take control over api host url

new settings option: api_host
merge