Docker: Version 0.2.1 updates

*  It was a mistake to design ``dockercmd.DockerCmd()`` as a subclass
   representing it's result.  It made extending data and behavior
   nearly impossible since state was effectively fixed at init time.
   Reworked dockercmd interfaces to support ``timeout`` and ``ignore_error``
   parameters properly w/ help from Jiří Župka <jzupka@redhat.com>.
   Simplified the interface into a base-class with sub-classes to specialize
   it to particular purposes.  This also had the consequence of
   greatly simplifying unittesting.

*  Most tests were having to run each output checker function
   on both ``stdout`` and ``stderr`` from a ``CmdResult`` instance.  It makes
   more sense to bundle this data with the output checking as
   a configurable/extensible set of behaviors.  Jiří Župka
   <jzupka@redhat.com> pointed out that the exception-raising
   nature of the checks should be optional behavior.  Moved
   the former ``output.usage_check()`` and ``crash_check()`` functions
   under a new class, ``OutputGood()``.  It takes a ``CmdResult`` as
   input, then either raises an exception or represents a ``True``/``False``
   value upon scanning ``stdin``/``stdout``.  The set of scanner/checker
   methods is configurable and easily expandable w/o changing
   the interface.

*  Added very basic unittests for ``output`` module.

*  Copy-pasted the special ``mock()`` function around in unittests.
   Bad-practice since it should go into a central module.  However,
   I already had a problem with it accidentally being visible inside
   a test, where it became a ugly, nasty, difficult to track problem.
   It needs to be de-duplicated at some point, but only if/when it can
   be done safely.  For now, it's duplicated inside all unittests and
   the documentation's ``config.py``

*  Moved version-check inside ``Subtest`` class under ``__init__``
   instead of ``initialize()``.  Formerly, it was causing failures
   during ``cleanup()`` which shouldn't even be running if there's
   a version mis-match.

*  Brought some exceptions from autotest under the ``xceptions``
   module.  This is mostly to help prevent subtest code from
   needing to import 'autotest.client.shared.error'.  It also
   makes debugging easier since we can tell where exceptions
   are coming from.

*  Re-worked the build subtest so that it is entirely self-contained
   (not requiring any external content).  This requires a static
   version of ``busybox`` is available on the system.  The benefit
   is the build-test produces much more predictable output.  It's
   also a potential technique/content for a base-level image we
   could use at some point for other testing.

*  Updated other tests to make use of new DockerCmd and output interfaces.

Signed-off-by: Chris Evich <cevich@redhat.com>
docker: Adds docker images utils.

Usage:
  d = images.DockerImages(self)

  # list all images
  all_images = d.list_imgs()

  # list all full_names
  full_names = d.list_imgs_full_name()

  # filter images based on full_name
  images_with_fn = d.list_imgs_with_full_name("fedora:latest")

  # filter already created list (helper)
  filter_list_by_components(image_list, repo=..., repo_addr=...,
                            user=..., tag=...)

Signed-off-by: Jiří Župka <jzupka@redhat.com>
docker: Adds sample test for docker images.

Signed-off-by: Jiří Župka <jzupka@redhat.com>