Add more (failing) unit-tests for restarting in various cases
Add more (failing) unit-tests for restarting in various cases

This should cover:
- restart with dirty changes in the public branch
- application of webhooks in the private branch
- some kind of conflict resolution between import of events and user changes
  (this is mininally tested at the moment)

Signed-off-by: Thomas Gazagnaire <5f50a84c1fa3bcff146405017f36aec1a10a9e38@gazagnaire.org>

docker/datakit,docker/datakit,docker/datakit