Json alert packet payload feature 1155 v3

Bases on #922 - includes some fixes (stream handling, coding style) and enhancements (ability to dump payload in Base64).