[replication] initial import
[replication] fleshing out the api