Adding support for yaml inventory scripts

Since all valid JSON is valid YAML, using the yaml parser for inventory scripts instead of the json parser.

Thanks,
Thomas Omans