Add custom properties to message

Hi,

I've added few lines to include all custom properties in the JSON payload, in addition to the "tags" and "fields" properties that are currently handled in a specific way.

Cheers