Add abstraction layer to attributes of WordDiff

Use Structs for simple attributes and real implementations for more
complex stuff such as postags.
Fix postag handling in WordDiff