filters: Handle all filters in PHP

Turns out that the query to fetch a "short" list from MySQL is slower than
just running all the filter rules in PHP
Merge pull request #301 from greezybacon/issue/slow-filters

filters: Handle all filter rules in PHP

Reviewed-By: Peter Rotich <peter@osticket.com>