lib/arch. This should make porting easier. Will probably continue to refactor a little more, moving platform dependent event handling stuff into lib/platform.
from XBase so it can be caught normally. Changed client and server to handle unavailable threads (in main loop, anyway).