#7: Refactor device authentication
 #7 Client downloads server's public key when authenticating.