move server code to server dir