[MP] Some buffer fixes in ui_main.c
[MP] Protect trap_RemoveCommand from removing engine defined commands.
If mods have any commands that need to be dealt with, we can discuss a whitelist.
[MP] Remove some unused defines from vm.cpp