Dependency cleanup: move rule definition modules into cros.factory.test.rules.

Some modules in cros.factory.test (registration_codes, phase, privacy,
branding) are made to define test-related rules and will be shared by gooftool
and hwid. These modules should have same (or higher) dependency group as hwid
and gooftoo.

This change moves those modules into cros.factory.test.rules and list it in
same level as cros.factory.test.l10n, with dependency group name 'test-base'.
hwid and gooftool are moved to group 'test-cros'.

BUG=chromium:403712
TEST=run tools/deps.py on changed files, make test

Change-Id: I458b073992a29083bdd4decc5eb85bd06be1b739
Reviewed-on: https://chromium-review.googlesource.com/321880
Commit-Ready: Hung-Te Lin <hungte@chromium.org>
Tested-by: Hung-Te Lin <hungte@chromium.org>
Reviewed-by: Wei-Han Chen <stimim@chromium.org>
diff --git a/py/gooftool/gooftool.py b/py/gooftool/gooftool.py
index 3755f90..a16a871 100755
--- a/py/gooftool/gooftool.py
+++ b/py/gooftool/gooftool.py
@@ -45,7 +45,7 @@
 from cros.factory.test import event_log
 from cros.factory.test import factory
 from cros.factory.test.factory import FACTORY_LOG_PATH, DEVICE_STATEFUL_PATH
-from cros.factory.test.privacy import FilterDict
+from cros.factory.test.rules.privacy import FilterDict
 from cros.factory.utils import file_utils
 from cros.factory.utils.debug_utils import SetupLogging
 from cros.factory.utils.process_utils import Spawn