FW-133. Adapting coap implementation to latest draft. WIP.