Json alert packet payload feature 1155 v7

Fixed #1046
Adds ability to log packet payload in Base64 or printable form in JSON and fixes some bugs.