Add chat UI and function.

1. Use Photon Chat API to build chat module.
2. Bug fix.