fix for multilingual support: default language was not always set to english, patch for admingroups, added exception for failed write to admingroups and added file lock