Added categories plugin

Covered by unit tests.