P4Poller: fix ticket-based authentication, add optional debug logging.