Moved server files to server lib