allow CAS API to return ticket objects rather than string ids

This helps with callers to not have to mess with the ticket registry
introduced a new getticket on CAS to retrieve tickets from registry
fixing unit tests compilations
removing ticket registry access from resolver
removing ticket registry access from resolver
introduced a new getticket on CAS to retrieve tickets from registry
added null checks to webutils