Add socks port and host args to TorAgent and clean up code