move IP resolver in A::F::T::Network

move the code used to resolv IP address in Network.pm.
This patch also add a test. The test is only enabled
if TEST_AUTHOR env var is defined.
Merge branch 'master' of git+ssh://forge.fusioninventory.org/git/fusioninventory/agent