Add support for encrypted Realms

Depends on https://github.com/Tightdb/tightdb/pull/543 to actually work.

Closes #949