Implemented more query operations: LIKE, NOT LIKE, IS NULL, IS NOT NULL.

Refactored Collection critiera. Can now directly query a ResourceManager as well as doing a db look up.

Should define different types of criteria for clarity.