Add kerberos ticket dump support

Also fix up a few other niggles.