Reset input history when sending a message. Fixes #140
Fixed a bug with mode changes not propogating down to clients