Switch config.php to OOP and update installer's write_config()