I think that the current code only handles local processes too,
at least that was my impression after reading the code, especially
main.c. You're right that this approach could make remote moves
possible.
But damn, it's ugly. I'd say, add an explicit connection moving
API instead of this mess.