Move logic of stopping core and services to api or daemon package


Now, when stopping the core (command mesg-core stop), the CLI manually load and stop services before stopping the core.
This logic should be move in API or daemon package.

Concerned source code:

Reply from @Anthony

I would vote for the daemon package to run this logic but it can rely to a stopAllServices from the API

Reply from @krhubert

That would be good start, but for now we are listing services from the database.

Maybe we should add label to each container and just create a function container.StopService(filter/label)

And in daemon - container.StopService(“mesg-label”)

Because overall we don’t need to list service from a database, but rather from current stat of docker containers.

The engine is now responsible of shutting down all the services when we shutdown the daemon