* testing: run swan-prep in each test, to assist manual test runs

It has been taken from runkvm.py so it is easier to run test manually.
Some better checks for the /tmp/pluto.log softlink as well
* testing: lstat / testname/dir fix.
* testing: make stackmanager call path independant
Merge branch 'master' of vault.foobar.fi:/srv/src/libreswan
* testing: swan-prep: don't use lstat, it throws exception.
* testing: dotest logs RESULT now.
* testing: sync up test case work.
* testing: swan-prep: fix regression in killing old IKE daemons
* libswan/pluto: don't use localtime/gmtime - not thread safe

Instead use localtime_r/gmtime_r

This resolves a crasher when many rekeys with XAUTH are happening,
and the do_authentication() call in the threads are logging a lot.
* ikev1.c: code cleanup - as suggested by dhr on the mailing list
* lswconf.c: remove unused variable env
* testing: added testing/klips/fixups/cut-postfinal.sed
* fixup recently introduced check for rekey=no plus dpdaction=restart

commit 4dde1771e5e89cd80 to implement this never triggered because it
confused conn->options_set[X] and conn->options[X]
pluto: fix IPCOMP logging to be easier to read
Merge branch 'master' of vault.foobar.fi:/srv/src/libreswan
* testing: int/string issue in swan-prep