Generic CSV to JSON parsing. Added messages_per_delivery option.