Splitting long messages

Split messages longer than 512 into chunks of 512, added modes to NAMES so they don't reset when NAMES is sent. Also maybe fixed CHANMODES (at least according to the spec)