Add YAML support to record

Add a YAML handler to the record package.