MDL-47454 events: Added logextra parameter to restore_legacy().

The "logextra" parameter was added to function restore_legacy() for
passing of additional log properties such as courses and users.
The existing restore() function similarly accepts this parameter.