Added a new message inherit tree

Added a new message inherit tree to support instant message and service
commands