Fix PHP shebang to work cross platform. Add timestamp support.
Too many changes to document; but basically GeoJSON-ify the documents and work around the limitations of doc_as_upsert.