Update experiment.py

Correcting so that term_id and term id go to the same facet and have the same level
Merge pull request #562 from ENCODE-DCC/2507-term_id_fix

Update experiment.py
Change facet name to Library made from
Merge pull request #563 from ENCODE-DCC/2449-library-facet

#2449 Change facet name to Library made from
Use LRUCache correctly (minimal improvement)
Record linked and embedded uuids
Update lot_reviews to use resource_path and embedding so that linked/embedded uuids are recorded
Allow json rendering of sets
Avoid finding dependents on PUT/PATCH/POST.
Updates will record updated and renamed resources to the transaction log.
Indexing uses these to query invalidated objects from elasticsearch.
Use postgres xmin as elasticsearch version
Use constant for index name
Avoid some unnecessary ES calls and make the /_indexer status json smaller.
Fix indexing tests to reflect changes
Fix query for Elasticsearch 1.4
Fetch xid on insert
store edits in user session, check for invalidated objects for pages from ES.
Only set session cookie for web users
Invalidate objects which newly rev_link to an updated object
Can now remove the dependent object walking on indexing
Ensure rename dependencies are recorded for all objects contributing to the path.