Consider using Mozilla's shared code for Firefox Sync rather than custom implementation
To do this, Epiphany would use the C FFI of Mozilla's shared codebase.
I think this could help avoid bugs that Epiphany has faced with the custom implementation and make it easier to keep up with server changes over time. This would also give easier access to new features potentially.