[WIP] Add support for encrypted Realms

Depends on https://github.com/Tightdb/tightdb/pull/543 to actually work.
Why is debugging not supported when using an encrypted Realm?