Adds Query.__rand__ and dal.Query.__ror__

Adds __rand__ == __and__ and __ror__ == __or__.

Also strips trailing spaces.