Major update of server files

Changed a lot of things. Still not ready