Avoid re-definition of xref_search_callback and ensgene_search_callback in the API. Now xref_search and ensgene_search accepts a closure