Add the possibility to choose if a category is anchored or not.

Bug fix: [no]
Feature addition: [yes]
Backwards compatibility break: [no]
Phpspec specification passes: [no]
Checkstyle issues: [no]
ChangeLog updated: [no]
Fixes the following issue: