Initial code.

Missing a reconnection behavior for the cloner, but pretty much
everything else to get it basically working is there.