several changes and new templates

* Catch Unicode error bug and catch ZLIB error for wrong passphrase.
* New templates for notifying the user that the note has been destroyed, as
  well as telling the user they have entered the wrong key.
* Modify Javascipt function to not use as many characters.