MDL-30797 backup: Use correct API call for mapping groups to groupings on import/restore
MDL-30797 - backup groups: Changing grouping restore function to use API in group lib.
MDL-30797 - backup groups: Alteration to the groups_assign_grouping function.

This addition of $timeadded allows the backup / restore function to use this
API when restoring a backup.