Start generalizing hmm writer to d and j

But decided to implement silent states first, so this is
really just stashing things before I do silent states.