Work on switching over to new security protocol

made EncryptionResult serializable
removed CHAP and started to add session key stuff