Refactor the deduplicate_stream module.

lib/deduplicate_stream.js
	-Restructure the `deduplicate_stream` module, abstracting chunks
	of functionality into functions (eg, `sendBatch()`,
	`bufferBatch()`).