Implement tags in ApiDoc annotation.

This commit implements the enhancements discussed in #305. The tags are
not yet rendered that nice. Documentation will come in the next few days.