the_category expanded to support custom taxonomies, with possibility to exclude certain categories or terms