Moved out server code to base directory.