core/corex: move send()/send_tcp() to corex module