Add hexdumpStream() function to assist with debugging

This dumps a full or partial stream to stdout in ASCII hex.