Add package network
network: do not throw exception in function waitForMessage
network: implement function restart
network: implement function reconnect
network: fix typos
Fix ant build file
Move source files out of the package network
network: fix typos
Minor fixes

- fix some indentation things
- remove unneeded comments
Add missing license headers