First commit of ripping out code from Bitfighter.  Should compile.  Might even work...