Revert "Revert "change send doc lines using tpds to work with stream and doc store""

This reverts commit a41299570d07b83111b6a995902a30a67867a5c7.
Revert "Revert "changed docstore url to /raw for tpds updates""

This reverts commit 4af4ff34b0ebad0ce9056a1c1dd5e20f12f6096d.