COAP-9. Added resources for a simple server.

* Also added more logging for exceptions in coap.py