moving doc into its own dict and using git style hashes of json as id in uri