add preliminary encryption support and fix a few btrfs issues

Merged Ghost User requested to merge encryption into master

Merge request reports