Add categories and subcategories support to Neighbors plugin

All there in the title.

The subcategory features are based on an updated version of the subcategory, as mentioned in my comment on #133.