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)