add Tcp IO extension and first draft of settings/options, see #2888