I was thinking that basically we have all elements there to create a Bittorrent Sync alternative with Open Source software, except for the link mechanism via the secret... (I would use Sparkleshare and then implement a btsync secret like link mechanism either as a "new" Git connection protocol or in a path on a localhost ssh connection, the last providing the advantage that you can permit access to your computer just by sharing a secret, which makes things like tunneling a lot easier...)
So how does that work, and/or how would you implement a similar system (as btsync is closed software)?
(If you read this and feel like implementing this, go ahead, ideas are free)