Use Client_HasMode and Client_HasFlag where appropriate
Simplify mode checking on channels and users within a channel

Add Channel_HasMode() and Channel_UserHasMode() and use it where
possible.
Convert more code to use Channel_HasMode