Tags Manager type definitions and tests

As requested in the readme file.