Added coap.c and coap.h.  This is the basis of the coap library.   Need
to clean up in order to make it ready for general use.