Assign the correct value to the theme's criteria property.

This was eliminated when we stopped merging $_GET and $_POST into handler_vars.
Fix searching for posts.

Since handler_vars no longer includes $_GET and $_POST, we've refactored our list of allowed filters in the theme layer to specify where each criteria should come from.

Fixes habari/habari#577.