Added another returnvalue to casKeySlot
Added comments to casKeyslot.
Builds after refactoring but fails most tests.
All testcases but one pass again. Autmatic unit tests and debugShow function proved to e quite usefull.
Rewrote cas functions with correct use of tickets, this should avoid spurious failurs.
Also refactoring of internal APIs for more concise and less bug prone code.