Refactor network code. Now common files (files that are used by server and
clients) are exported to DLL and lib.