Add server class and add swap-file to gitignore
Some server threads
Fix compile error and add ant-script