Split magic files
add event manager command
add event manager files
make the portals listen to commands
add script_explode_str procedure
setup event manager core
add cleanup
empty killgm file
remove debug from handler
fix typo
test
-2
-3
Revert "..."

This reverts commit e3160104911846e7fba5afe0fcfac7d984bbb67f.
-4