PIGZ transfer added

Automated setup and transfer based on:
http://andrew.tumblr.com/post/2316602611

**Make sure** you're not spoofed into using some other nc than the original.
An example of a spoofed nc using this script:
hostname [nnn.nnn.nnn.nnn] 1447 (?) : Connection refused

To check, do the following:

nc -v

...Should somewhere in the output text say:
"netcat-openbsd"

Remove any other by:
sudo apt-get purge netcat-XXX

If that doesn't help, remove any traces of repository nc, get source, build
and install. That should take care of binary spoofing as /usr/local/ bin &
libraries has presidency over other system paths. Get source from here:

http://www.openbsd.org/cgi-bin/cvsweb/src/usr.bin/nc/

Change-Id: Ifb0c8a8ef218f43dae51933ee50a900fbb14433f
Tidy and fix

* Tidy scripts from fs after use
* Remove -v flag when untaring with pw

The latter has to be further refined as it seems running ANSI outputing
command in remote shells doesn't work as expected.

Change-Id: I3837227c5b639e946a3334d45fbbf9ee347f0fd6
Fake TERM settings for pv

Fake TERM-settings based on current terminal. Not perfect as apparently the
problem is that ssh breaks stdin connection to a terminal and pv can't
determine WITH and HEIGHT.

Good enough for now.

Change-Id: I1d7e75d7ffbbde9fbb4e77febc98d7eb2d2461e3
Info about pscp.sh was added

Change-Id: I1fad3c67dbf2abc89f26051f8d08977a10bdf98e
Destination path correction

Two independent errors:
* If ":" was omitted the path extraction would fail completely and be
  replaced with ".". Which is a common case when user wants to relate to
  "current machine"
* If destination address ends with "/" we actually intend "to be placed in"
  that directory, and not it's parent, even if the parent and the source
  happen to have the same name. This is modelled after cp, but might differ
  slightly from scp.

Change-Id: I8c746d0d74bd6869b56ba88b9059b5dde99ca830
Adding verbosity option

Outputting states is just irritating if not used for debugging.

Change-Id: I21799f9d3b558c2b55892e3f2bf0dc29a6d3247e
Naming hell hopefully solved

Problem when testing from<->to the same host detected (unrelated).

If allowed to run as is and in a screen, nc will bail and a second try will
show:

nc: Address already in use

This error sticks and -P must be used to choose another port. Suspect timing
issue, will try changing the order so that start is slightly faster.

Change-Id: Id3eee56ab4f8031723f80e7e9dc0a1b2885c1490
Change-Id: Ic01abb9adf80b4b6e335ceb888294846a547feea
Change-Id: Ie7e6c3b0473a3bcacb82aaf35210720c2269b1af
Tidy up from naming hell

Change-Id: I5d1c1c6f7988d437929f40658f9723b123a3426e
Order changed init/start

Allowing some time between stating sending and start receiving makes the nc
issue go away.

Change-Id: I4cf2d5b3abee107bfd2a9c252a86c25547da7d26
Documentation rewrite (man-page style)

* pline: Minor fix in ui
* pscp: Man-page style documentation.

Change-Id: I1593a00c831d9327e916ac5ed973f32eef7a5970
Improved logging

Change-Id: If9ecabefcaf6e7169eeb2bed6a54870e87c3c5e6
Better means to output errors

Check before continuing that send script is really working. If it's crashed,
there's now a log file thats very helpful. Helped me determine that a issue
I have is that sender (local-host) is behind fire-wall. As this will act as
server, we need to create port FW. There are other ways to get trough FW
with nc, but this will suffice for now.

Remaining issues:
Another related issue is that if SRC name doesnt contain FQDN (i.e. is
local-host), local-host name isn't enough. We need better ways to determine
FQDN. Unfortunately domainname and dnsname seems both broken. But `host
$hosname` seems to work fine. This is not a standard tools however.

Change-Id: I8d64b87044b1384f2eb16c1fb676b17a344e070a
Set show-progress to be the default

Change-Id: I9db3f9599bc2d14235f754075e54040b4b9b6509
Works fine now.

A speed increase of 300% compared with scp where ssh used compression level
6 and up-strem speed was 2.74MB. That's pretty good, it gets the job done.

Change-Id: Ic5d7cd876420ae108a50776e8b5d2ee868662132
A minor speed improvement.

Takes away 2 unnecessary logins. On some hosts this however have a
significant impact.

Change-Id: If07eae7dbdd382dc5c93ee1900b240e77d3d076c
Reverse send method

Bulk done, not tested.

Change-Id: I6ee3530b6581d16eba6ec9136fb4a351439718f1
Prerequisites check added

* Prerequisites check on both SRC & DST
* Improved logging (info)

Change-Id: Ia1ce9306e7df8ab8d7e107e1f2e0140a19736042
Merge branch 'check_prereq' into 'integration'

Conflicts:
	pscp.sh

Change-Id: I3858f47404ed2e1172079b1db8b9e56200d46e75
Self analyze added

Handles only port-conflicts atm

Change-Id: Ia586572118d3df56fe5b92d3a4a63b4c6a28bfe4
Aesthetic runt-time fixes

Code behaviour changed so that output renders more pretty.

Various fixes: From man-page to minor bug-fix.

Change-Id: Ic4b4a8c512ab04a989a0c2fb5b7f805f9e0f0498