Rethink WP query integration

* Allow queries to be skipped on a per-filter basis
* Rather than recording whether we are in "the" loop or not, we use a query stack so we can nest queries.