Fixed numerous bugs.  These inclued the ones to do with mode changes, and not detecting a lost connection.  Also added flood control
Fixed numerous bugs.  These inclued the ones to do with mode changes, and not detecting a lost connection.  Also added flood control

sonicrules1234/sonicbot,sonicrules1234/sonicbot