Moved settings to JSON file.
Added group-based roles.