Started to implement methods to update domain when server is ahead. Did some refactoring. Added a lot of TODOs. yay.