Implement support for having query methods in custom resource handlers. Solves pomona issue #42.