read NIC IP info from the {spec} subkey

I don't know if this was a bug or if these informations may be some
time in the root NIC directory.
simply the network info collect part
generate a deviceid
simplify a bit the test
simplify a bit the test

backport from master branch
Merge branch '1.1.x'
fix: get more MAC addresses
prepare 1.1.3 release
refresh the getNetworks() test
prepare 1.1.3 release
optimize

- reduce the number of sha512 call
- drop File::Find
Merge branch '1.1.x'
API changes: getRegistryValue → getValueFromRegistry
rename fileSizeLess to fileSizeLower
agent API changes: replace addVirtualMachine()

use addEntry() instead
start the threads, change the status to RUN

closes: #1410

Reported-by: David Durieux <d.durieux@siprossii.com>
drop MessageBox.pm for the moment
no more 'log' key in log sent to the server

we use only the msg key. This key can either be an array
or a string
avoid segfault on Windows when thread are cleaned

do not initialise IO::Socket::SSL before the threads.
this will create segfault during the threads DESTROY() call.
fix: finally really send result to the server