Refactoring code.

- Handling passphrases via new Passphrase class.
Adding to_bd and to_xcr methods to NilClass.