Further adapt prototypes of ticket functions

Moving everything in ticket_keys structure, that will soon become
ticket_context.
5 files changed