Implement removal of deployments prior to client deregister

Clients receive all remaining deployments when they deregister, so they can remove them.

This closes #73
1 job for dev in 1 minute and 24 seconds (queued for 1 second)
Status Name Job ID Coverage
  Test
passed test #331561

00:01:24

97.0%