Moved server module to library, and added channel recording example.

* CoapServer triggers events to read/write resources.
* Also added resource module.
* WIP to send ACK with content in reply to a GET.