This patch allows the much requested selection of individual instances of modules within a course to backup and restore.
It needs A LOT of testing and probably some prettyifying too.
to resources (from resources and forums) are re-encoded in backup/restore.
I could reduce the code size but for now I prefer to have it this looong
form to clarify what it's doing.
Please, test, test and test...