Main worker gen_fsm loop will handle incoming tcp data

Earlier attempted to spawn off a pid to do so.