added ability to searching deleted entities. Fixed #21.

I have added flag for searching deleted entities so there is no more exception on querying entities that have RevisionType.DEL.