Make flavors more extensible.

Now a flavor isn't defined only by a dot config file, but its resources are
contained in a folder under `flavors` named after it. Next step is to add
useful resources to a flavor like patches and default config files.