fix various crashes/overflows/security problems in MP

This fixes some of the more well known crashes and security problems in quake3/ioquake3 for the multiplayer code.  Doesn't attempt to fix the various gameplay bugs.  Doesn't have all the QVM fixes but QVMs arent used by the base game for Jedi Academy and it isn't clear if any mods use them.