Update configuration system, and fix bugs in download module.