Json alert packet payload feature 1155 v6

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