CIDEVSTC-306: Enhancements to resource and event queries

This pyon extension provides the basis for more powerful discovery service functions and for general enhancements to datastore queries.