spec helper and spec for periodic indexer
only index global records when processing the first repository
Merge pull request #693 from hudmol/index-global-records-once

WIP: Index global records once