Redmine #6180: Introduce libyaml integration.

With readyaml() and parseyaml() functions.

Based on pull request #2028 in CFEngine core repository.
Modified by Kristian Amlie <kristian.amlie@cfengine.com>