Fixed a couple small bugs. Added the main server-side classes and some of their guts.