blockchain/indexers: Reduce duplication in cfindex.
blockchain/indexers: Reduce duplication in cfindex.

The index will hold three types of entries for each filter type, block
pair: filter, header, and hash. Since they all have similar methods
and implementations, refactor to reduce duplication.

Roasbeef/btcd,Roasbeef/btcd