Restructure project and make the server runnable