Fixes warnings, bad code and code style
Use the Z1 product ID as MAC/Node ID if no value is found in the XMEM
dos2unix fix

I've found all the file with windows encoding by using the following
command :

    find . | xargs file | ack-grep "CRLF"

It's better to have only one encoding and since UNIX is the convention
used for core it should also be the one used everywhere else.
Fix end of line

I've found all the file with windows encoding by using the following
command :

    find . | xargs file | ack-grep "CRLF"

It's better to have only one encoding and since UNIX is the convention
used for core it should also be the one used everywhere else.

Adding a .gitattributes