[Reviewer: Alex] Utils update

Alex, can you review these changes to add(/move into cpp-common) a couple of utility functions.
I've also moved some of the fake* files used in UTs into cpp-common
By calling this function with 0 for the last parameters the strings will not be copied, which means we'll end up reading invalid memory when the message is sent.