MDL-33512 Webservices: core_group_xxx_module_grouping (assign and unassign) new WS methods
MDL-33512 webservices: minor cleanup and adding phpunit tests
MDL-33512 webservices: Use correct exceptions