shared: Move daemon function to daemon file
shared: Correct test for invalid response

Signed-off-by: William Douglas <william.douglas@intel.com>
shared: Correct type of size

Buxton was still using an int for a size type, correct to size_t.

Signed-off-by: William Douglas <william.douglas@intel.com>
shared: Update get response to handle various size messages

Signed-off-by: William Douglas <william.douglas@intel.com>