Replication is working!!!

Still have a few TODOs :wink: but replication is working. Missing unit tests :disappointed: but I will work on this after testing it in production :stuck_out_tongue_winking_eye:!