Refactored etm-agent to support Apache and HA-Proxy modes.