Higher level IPC abstraction (fixes 238)

This is mostly refactoring.

Fixes #238.
Maybe "which will be pushed to this remote" or "to receive" or something like that.