Created a base class for datastore statuses

Extracted a base class from MySqlAppStatus to make the majority of
logic applicable to the other datastores.
Also switched most messager classes to use the new Json builders.