WebSync mostly done
Massive refactor