XD-915: Convert tcp modules

Converts tcp modules to new form (separate project for source and sink).

Adds tests for tcp modules.