Fix memory leak of ConnectionData
Refactor code to allow 2 different packet authentifiers