Add cohort support to sunspot indexes and searches.  (tests)

(Forgot to include specs with last commit)

[#59280284]
https://www.pivotaltracker.com/story/show/59280284