Finish implementation of CoAP event sending, with unit tests and encryption functional tests