Add basic CAS Ticket functionality.

Generating and validating tickets functionality.