Rename Phablet.cmdline() to .ssh_cmdline() with backwards compatible alias

Signed-off-by: Zygmunt Krynicki <zygmunt.krynicki@canonical.com>
Phablet.connect(): Don't reconnect each time

Signed-off-by: Zygmunt Krynicki <zygmunt.krynicki@canonical.com>
update docstring for Phablet.ssh_cmdline()

Signed-off-by: Zygmunt Krynicki <zygmunt.krynicki@canonical.com>
log return value of Phablet.ssh_cmdline()

Signed-off-by: Zygmunt Krynicki <zygmunt.krynicki@canonical.com>
add Phablet._check{,_output,_call}()

This patch adds a set of method mirroring the subprocess module API that
do additional logging

Signed-off-by: Zygmunt Krynicki <zygmunt.krynicki@canonical.com>
Use internal subprocess replacement instead of native subprocess

Signed-off-by: Zygmunt Krynicki <zygmunt.krynicki@canonical.com>
Fix RemoteTemporaryDirectory's dirname not to have trailing junk

Signed-off-by: Zygmunt Krynicki <zygmunt.krynicki@canonical.com>
add Phablet.rsync_cmdline()

This patch adds a method that can be used to rsync files or directories
onto the phablet

Signed-off-by: Zygmunt Krynicki <zygmunt.krynicki@canonical.com>
add Phablet.push()

This method adds a higher-level wrapper around Phabler.rsync_cmdline()

Signed-off-by: Zygmunt Krynicki <zygmunt.krynicki@canonical.com>
add SynchronizedDirectory

This patch adds a new class for having a directory synchronized over
to the phablet device, to a temporary remote directory.

Signed-off-by: Zygmunt Krynicki <zygmunt.krynicki@canonical.com>