(reland) Move our provision code into a library

we have another version of the provision app
which is almost the same with few things more.

Bug: 247004472
Test: presubmit
Signed-off-by: Roman Kiryanov <rkir@google.com>
Change-Id: I31f594da4b0491c2c4fbbbd08bf0a6e278d6d432
6 files changed