WIP support for multiple web proxies

Create the gear registry when creating the cartridge directory on the
gear, otherwise we get permission denied trying to create the file in
update_cluster

Only rsync app-deployments and activate the current deployment on new
gears if we're the currently elected "master"
Fix unit tests