This commit adds service discovery using Consul's HTTP API and watches (long polling) to retrieve target updates.