rip sync_log out into a property
pull out validation to a separate function
add deprecation warning to old API
move BadStateException to exceptions module and add RestoreException
whitespace
make BadVersionException, make RestoreException extend ValueError
catch all RestoreErrors and show more appropriate messages to users
Merge pull request #114 from dimagi/ota-restore-caching

more refactoring and cleanup