Switch structured-data handling to main syslog snippet

This adds structured-data parsing to the main syslog snippet. It's basically a refactoring of what was already in nxlog, just on a more general level. I don't have any additional commits planned for this - I'd just like to wait on merging until this gets tested more on our meta cluster with a wider range of data.