Fix issue #129 - make chat event fire for commands, and add isCommand method.