factory_install: Change installation to support new cros_payload system.

The new cros_payload storage system allows factory install shim to unify
the installation logic, for both Mini-Omaha, RMA, and Multi-Boards RMA.

For USB installation, cros_payload is selected if USE_CROS_PAYLOAD is
set.

For network installation (netboot, mini-Omaha or Umpire), cros_payload
is selected if the ${BOARD}.json can be found in static path.

BUG=chromium:711615
TEST=build_image factory_install
     Verified Mini-Omaha installation and RMA installation.

Change-Id: I6f44b5b0d8e9bcd223533b5e1849f4fc6db8f76d
Reviewed-on: https://chromium-review.googlesource.com/497240
Commit-Ready: Hung-Te Lin <hungte@chromium.org>
Tested-by: Hung-Te Lin <hungte@chromium.org>
Reviewed-by: Hung-Te Lin <hungte@chromium.org>
3 files changed