Allow YAML as alternative configuration. Closes #2.