Fix filter scope

The relation is many-to-many, thus the old approach didn't work.
Add scopeFilterCategories

Adds a filtering scope
Merge pull request #34 from alxy/patch-1

Fix the filter scope in backend