Allow prepareAutoQuery to be overridden

This enables custom rules for automatic lists on a per project basis without the need to fork this module.