Feature/coap

**DO NOT MERGE**
CoAP support implementation draft
return 1  in both cases?
If so, the first one you can remove.
Also, the comments can be removed.
And ... perror(NULL), that could be improved ... :-D