lib: move a bunch of libraries to lib/

As part of the goal of making chromite/lib a general purpose set of
libraries without unneeded random dependencies, we want to make lib/
more hermetic. The ultimate goal is that lib/ modules can only depend on
other lib/ modules or on third-party packages (that are provided either
by a virtualenv or by whoever choses to use lib/ libs, but are not
vendored in chromite itself).

This is a first step in that direction, getting rid of some of the most
common lib/ -> cbuildbot/ dependency.

Since cbuildbot/constants.py is referenced from some other repositories
still, leave a symlink there that points to lib/constants.py

Also, move a few unit tests of config_lib that depended on
chromeos_config.py into chromeos_config_unittest.

BUG=chromium:645611
TEST=Unit tests pass

Change-Id: Ife55d26bffb204474a63d94b751b68a8b12c7ddd
Reviewed-on: https://chromium-review.googlesource.com/392489
Commit-Ready: Aviv Keshet <akeshet@chromium.org>
Tested-by: Aviv Keshet <akeshet@chromium.org>
Reviewed-by: Aviv Keshet <akeshet@chromium.org>
diff --git a/scripts/cros_sdk.py b/scripts/cros_sdk.py
index f426d1d..27c2df2 100644
--- a/scripts/cros_sdk.py
+++ b/scripts/cros_sdk.py
@@ -21,7 +21,7 @@
 import sys
 import urlparse
 
-from chromite.cbuildbot import constants
+from chromite.lib import constants
 from chromite.lib import cgroups
 from chromite.lib import commandline
 from chromite.lib import cros_build_lib