Async callbacks are a PITA, so we now pass a single trait object which implements check_auth and get_index.