Don't use flatten if not necessary
TCP Support functions to deal with reply, request and connection information
Merge branch 'tcp_on_connect_reply'

Closes #27. Thanks, @psytale!