Giving the ability to register types of tags

See #22
Abstracting suplicated code

See #22
Merge pull request #23 from johngeorgewright/22-registering-tags

Registering tags. See #22.