Add a base class of a semi-finished YAML parser I have no longer any use for.

It still uses PHP's default yaml_parse() at this stage, so all it does is add extra backend, such as checking for errors.