cmd/gocharm: generate metadata.yaml and config.yaml automatically

This makes it possible to make modular charm components - you don't
need to know the relations and configuration that a component requires to use that
component.