libyaml integration and readyaml() function

YAML is an ugly mess and the only reasonable C parser I found for it was https://php-yaml.googlecode.com/svn-history/trunk/parse.c

This CFEngine-specific implementation maps YAML into our in-house JSON library, so timestamps and many other advanced YAML features are not supported.  I did the best I could but this could use some review and tough love.  It could also use the same testing as `readjson()`.

Finally, if it's accepted, the functions `writeyaml()` (not trivial but doable) and `parseyaml()` (trivial) will be needed.