crypto code, some from https://code.google.com/p/js-mcrypt/
Front end stuff.