Fix the Pan code in ncm-network.

The import script failed to set the correct headers and some versions
were hardcoded by mistake.
Use the newest versions of the build tools.

These should allow to run the tests on SL5.
Run distro-sync at the beginning of the update.

The spare_deps method had to double-guess what packages might still be
needed.  And it was awfully slow in many circumstances.  This is solved
by just upgrading everything early and then doing the final tweaks in a
separate transaction.
Obey runspma from distrosync.

It was running yum distrosync inconditionally, which is obviously not
what we want.

Tests are adjusted, and so is their documentation.
Adapt distrosync to the refactored yum execution.
Fix typo in a comment.
Initiate a method for sparing dependencies.

It should be faster than the previous attempts.
Fix test documentation.
Check for dependencies of packages to be installed
Purge removal candidates with reverse dependencies
Make whitespaces consistent
Print the names of the installed packages too

Allows to remove quickly any already installed package that has not been
completely specified from the list of packages to install.

This should make Yum invocations much shorter, often without any
"install" line at all.  It should also make the "spare_dependencies"
method much faster, since it will do much smaller queries.
Add a simulation of how to reduce transactions
Spare dependencies with --requires in most cases

The --whatreq path is much slower, but it still is a good speedup for
installations, where an operator may be actually waiting for the node.
Use append for register_change.

It's more friendly not to override any configs the user might already
have there.
Remove unused variable.
Detect errors in scriplet executions to fix #42
Fix spurious warnings.

If we pass an undefined stdin to the CAF::Process the reporting logic
will raise warnigns about uninitialised values.
Merge pull request #36 from piojo/network-fixes

Fix the Pan code in ncm-network.
Merge pull request #44 from jrha/master

Correct LogLevel validation in ncm-ssh schema