Added functionality to export and import files.

Files are encrypted with a key derived from a user specified
passphrase.