Experimental support for template message.
Keep code consistent.
Merge pull request #11 from yfwz100/dev

Template message support.