Fix listing files and directories.

Not nice but working... Add test case.
Fix crypto test.
Store myself correctly in UserIdentity.
Use more precise exceptions.
Save and load user identities.
Use correct path.
Add login method.