Chat messages and events format flexibility

In previous versions chat messages and events html format are hardcoded on model.py file, I created templates files to decouple format from logic, so now it can be easily customize the format by overwrite the template files on a project and do not change source files.