Add support for assigning labels to articles

Feature added by request from an anonymous user, who also provided
the appropriate code snippet. Thanks!