Implemented searching for categories and publications
Removed some unused code
Added filtering of publications and categories