Use getaddrinfo and parse /etc/hosts on linux - fixes #289.

TODO: for windows, look at \WINDOWS\system32\drivers\etc\hosts

See also #460.
Make NetworkAddress fully pure nothrow.
Fix DNS queries from inside tasks, add hosts file support for non-Linux systems and adjust code style. See #460, #289.