Added tag type. More work required to integrate tag clouds etc.