Add MessageTools class for message operation support
big housekeeping operations in the code