Tags partially implemented.

Still need to be able to manage them sensibly.