MDL-44106 add 'restore' and 'ws' to the list of origins in log table

This patch centralises the request origin data in $PAGE global.