added duplicate notification data check
changed default channel data

instead of adding a flag to every channel, marking if it is the default channel, the default channel is separately stored in a CServer variable
merged TSC_Connect and TSC_Login
added id-type for channel and client data structures
added status check for login
small code cleanup and fix
re-added some functions

affects #2