get_index refactor.  get_count refactor.
Skeleton for TOC test
Test of TOC
get_index() in summaries and export
get_index() factored out of texts.py
Merge remote-tracking branch 'origin/layers' into refactor
Move up track_pkeys boolean, fix bug with name "_id"