Move query page from generated code to AbstractDao

Needed in cases where the generated dao is not available, e.g. CrudResource.