changed Query controllers method signature

Now it allows the developer to provide method handlers to customize the
action result or null result. Previously you had to override methods.