remove unused code.
add userdata to cmd parser.
add 2 new commands, connect / session.