zfs-replicate: break out generic code into library module
zfs-snapshot: create and retain periodic zfs snapshots