Add send template message APIs and event. Close #4