Add config parameter for the api listening socket

Add api_host and api_port in 'site' section of the config