Add YAMLWriter class.

An even more generalized version of the YAMLConf class.