Fixed api top-level domain selection
Added in better handling on sync download errors
Migrating away from lzstring for compatibility