shared: Add parse_list function and tests

Multiple functions are having to take a BuxtonData array and split it
depending on the number of items in the array and the type of message
it contains. To avoid this add a single function to contain this
functionality.

Signed-off-by: William Douglas <william.douglas@intel.com>
shared: Use parse_list results for daemon_value_func calls