As-You-Type Query Validator

Possible downside: We're using eval

Also includes a bugfix for selection deletion.