Fixed a whole bunch of broken things in the SWORD server after a long day of testing.