CAS support

Got CAS support working in hector. need to clean up the unit test before
I check it in.