MODE-1859 - Fixed the CLI errors on repository removal

They errors were caused by the fact that when a repository was removed, not all the services that were started/created when the repository was first added, were stopped/removed.

Also, the entire service remove/recover code for all the services started by the ModeShape subsystem was refactored.