Refactor: find_ticket_by_name to no longer rely on global booth_conf var
Also, apply the same recursively to superjacent call graph expansion.
Also, exercise some const-correctness at places being touched,
and hide some functions as merely static ones.
Signed-off-by: Jan Pokorný <jpokorny@redhat.com>