Add return to all NetworkBuffer append methods

append now returns the number of items added to the buffer; 0 is returned if there is not
enough space in the buffer to append.
Expand buffer unit tests.

Check return value of append calls and add a test to append multiple types of data.