Prepare infrastructure for ssh wrapper

Issue #597

Signed-off-by: Michal Čihař <michal@cihar.com>