Discuss and implement remote connection support

To be done together with @benoitc , and having in mind that we need to implement a solution on top of TCP for large documents, in place of using the standard erlang tools.