adds basic server architecture

Getting "Unaught [sic] exception: TypeError: object is not a function" when launching the server, could you fix ASAP?