updated server config and task to handle configuration of protocol and ports, updated collection to determine which way to call the service based on local config variables