add email notify function and enhance the chat function.
Merge branch 'master' of https://github.com/mocha-platform/mocha