Move client_tid into session information.
Refactor program with new enum explaining actions.
Add initialization of session struct.

Also, make check to create ephemeral ports stricter.
Finish documentation and remove extra whitespace.