introduce StaticQueryMethods trait

All of the query methods have been removed for now, pending resolution of some outstanding issues with generics handling.