test(chat): Add tests for cmdService and markdownService.

resolves #14, resolves #17
fix(chat): Remove unused 'from' params.
fix(chat): Fix a few bugs uncovered by unit testing.
fix(chat): Add actual mocha package as dev dependency.