adapt new API of EncryptMessage / DecryptMessage
add cmdtr-emu.sh for easier work with emulator