MDL-38192 Backup and restore: Allow selection by activity type

Add to the existing 'select all/none' JavaScript so that users can choose
to select or deselect everything of a certain module (e.g. deselect all
forums).