Fixed memory leak in failed init case + added uninit code.
Added some more sanity checking of hcp_io state, and found a bug/misfeature.
Moved trickle definitions to hcp.h, and made test code which uses them.. a bit, at least.
Added fairly thorough unit test of trickle stuff. Fixed few
bugs/misfeatures while at it. TODO: Packet reception code+test.
Merge branch 'master' of github.com:sbyx/hnetd