Files encryption

- Changing user password in webUI leaves encrypted files readable
- Fixed bug causing logout + login to render some files unreadable
- Fixed bug causing webdav actions with files_encryption to fail
- Fixed some errors relating to login and hook handling
- Updated and improved comments