Added some DoS resistance to protocol. Added coap examples.