Added crypto

Reverse engineered CAT protocol's encryption, added some code to decrypt
it.