Implement search filters
Implements search filters to give users more control over search results. Currently implemented filters:
- from:user
- before:date
- after:date
- has:'file'|'img'|'video'|filetype
Also has a fix for a bug that was causing every other search result to never be displayed.