Qfs kerberos lib: add replay unit test; add request / response loop test to check for memory leaks; minor code cleanup.