(bug 19004) Added support for tags to the API. Patch by Matthew Britton.