Add Tag, Term, TagToIDMap classes and a few basic exceptions