Added PFS support. Parallel auth_key generation. Small bug fixes
Fixes small bug in query resend while changing session
clear ack flag when session is renewed