First commit for full rsa encryption algorithm.
Some cleanup for the server code.