Move non-SpecialPage specific functions into MassMessage class


Change-Id: I11974cfb9f996ef630a5f2f65e09a9ef23e9aed5