Add initial replication support
WIP maintenance tasks