Several changes to improve robustness of the persistence layer. Removed stale google gears/html5 sync code. Improved handling of persistence ready. Fixed bug in flush code. Added a retry in the case that the ordering of Cordova calls causes a transaction error.