refactorized $permission service to permissionService, added system to include modules socket events (by @lammoth) renamed settings to follow group conventions