Redesigned client, and made it work with server

Now en- and decrypting using AJAX and the Server-API