CouchDB is a web server which is also a RESTful database that you query with Javascript (including geospatial data which syncs to your server and phone).
CouchDB allows you to deploy (couch)apps, and also allows replication in order to clone an existing app.
TiddlyWiki on a CouchDB can be used for hosting:
The source of the couchapp can be found on my Github and a full view of the application (including instructions to replicate your own) can be found on TiddlyCouch.