Added subsetting by multiple hits.

Also refactored some of the analysis code to be easier to read
and more generalizable.
Merge branch 'master' of github.com:hbc/projects