Added ability to read CoAP message code, message ID, and token

* Also renamed unit test directory, from 'tests' to 'test'.