tidy up some correctness issues reported by go vet
Merge pull request #1 from andybons/andybons_govet

tidy up some correctness issues reported by go vet
Added all filter tests.
Added checks for TTL when fetching info from infostore and from
groups, with associated unittests.
Added InfoStore.InfoCount() to find the count of infos amongst all
groups and within the non-group map. Augmented unittests.

Added InfoStore.BuildFilter(maxHops) which creates filters for peer
selection, limiting the keys to those for infos which are <=
a configurable number of hops. Added unittests.
add pre-commit hook & convenience script to add it. fix some vet errors.
fix nits
Merge pull request #2 from andybons/andybons_govet

add pre-commit hook & convenience script to add it. fix some vet errors.