strip out mgmt_server
pull handle message into its own function
replace udp with tcp
handle messages from tcp socket