Made gridresolver cope with AbstractQuery
Implemented some specs for GridResolver and IdentityResolver