Function to get or create a default entity
Function to get or create a default user group
Added 2 functions - get_global_setting and get_module_setting
Added a default group setting