This local storage system provides a schemaless data store for use by an iOS application. It furthermore provides a URL access point, so that a Backbone (or similar) app running in a UIWebView (as when building apps using a cross-platform system like Cordova) can use the storage as though it was using any RESTful API.
Although Cordova did provide local storage at the time of development, this approach was much more transparent to the JS, and it allowed us to use the same JS code on a web server with a Ruby CMS which exposed the same API.
Unlike CoreData, this schemaless method let us do most of the object modeling on the server, so schema changes didn't have to propagate to the application layer.
NOTE: sample code only, not all dependencies are provided