Added filtering by classes and topics

and a bit of query rewrites
and small changes to .css files

Change-Id: Ibd5a0f0354b3ee85b2f45f5d9cdd440d74eccab8