Migrate configuration from "examples/" to "config/"

Also, drop JSON in favor of YAML.