Completed implementation of /getSettings.
Completed TODO: MatrixController destroys all modes in destructor.
Added partial implementation of /setSetting.
Added missing "index" member in JSONUtils::getSettingJSON.