Solve a range of communication issues between the NRM, libnrm and the CLI tools.
This merge disables the unit tests for the messaging layer, as they appear do not be consistent with how messages are actually being sent around. We're probably going to need redesign the core architecture of the system quite a bit...