script_trask, handle_msgs: factored out handle_msg_from_devtools