Introduced virtual $criterion property on Query object

Already deprecated, but used to keep Backwards Compatibility. Maps to
$query property, so that old code will still behave just as before this
change.