enable drag&drop sorting creating redirects

Added new Event OnResourceBeforeSort to enable drag&drop sorting
Minor fix in installation script with double OnBeforeDocFormSave instead of OnHandleRequest