Added calback on new message recevied; implemented AES encryption-decryption as an example