Split the functionality of processMessageChanges script to a class

Change-Id: Ia02cc7c67cc5573d242b6e97e9314915b181b8b8
Merge "Split the functionality of processMessageChanges script to a class"