Moved direction to libchan, updated encoding

Signed-off-by: Derek McGowan <derek@mcgstyle.net> (github: dmcgowan)
Add client and server listen interface to new session type

Signed-off-by: Derek McGowan <derek@mcgstyle.net> (github: dmcgowan)