New structure

Changed the handling of the request, answer and transmiting to the
Server.
Also added the function of getting the mac adress and transmit it to the
Server.
A memory check is included for temporary tests.