Move the knowledge around configuration files into the Config class
Use File.extname instead of rolling our own file extension algorithm