Exit after failed configuration serialization (and format fixes).
Don't treat 'local' master differently.
Passed the serialized configuration through TaskInfo.data.

The serialized configuration is in a binary format and previously we
passed this through an environment variable (which required Base64
encoding). Instead, we pass the binary data without Base64 encoding
through the TaskInfo.data field.