Added hasLocal, make syncState be more selective
Improve bugs in getPage implementation, especially at end of pages
Improvements to handling and customization of syncing
Turn off state tracing