adds fd to log output; ws_app improvements
renames chat1 to chatterbox1
refactors closing handshake; adds ws constants
nulls out function pointers; refactors log levels