Auth handling, packet encoding, polling handling. #123