Refactored cm to a relay server and dhcp_client to fsm