Changed structure of the server directory and set up the required server based things for version 4

Title pretty much sums it up