Refectored cryptography management code, replacing KeyManager with BufferCryptoManager and DeckCryptoManager classes. Updated (hopefully) all references in use.