Begin creating test cases
Properly use global var VERBOSE.
Move type declarations out into a separate file.

Also typedef the session struct.
start documenting server header file