Example on a working rails server using persistence-restfulSync for synchronization on clientside for offline access.