implement basic import/export to YAML format mechanisms

This still needs a lot of work obviously, especially the import
part.
Use a new module, myaml,  to register classes to be able to later
serialize/unserialize the objects to/from yaml format.