refactoring, fixed encrypted message json parsing bugs
refactoring, fixed encrypted message json parsing bugs

Ziftr/nxt,fimkrypto/nxt,metrospark/czarcraft,Ziftr/nxt,fimkrypto/nxt,metrospark/czarcraft,Ziftr/nxt,fimkrypto/nxt,fimkrypto/nxt,metrospark/czarcraft