Changed MySQL / Redis to share functionality

Moved the commands to start, stop, restart the datastores and
wait for their status to change into the DatastoreApp class.