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.
Merge pull request #5 from PcTim/master

New structure by Tim! Cool, Danke!