[threads] Add support for adding / removing tags.
[thread/model] Add a hasTag function.