merged Apphost and Server.cs into a single class

starting to figure out how this thing works