Fix @MsgRoutedVia macros.
Extend script subsystem.
Extend work with fileboxes.
Fix build with ENABLE_SCRIPTS=1 on FreeBSD 4.x and Win32
