Refactor socket_interface to proxy. Exclude engines and stm from proxy.