Move functions in build_verity_tree to a static library

Move the functions to calculate the hash tree size & generate the tree
to a seperate static library. Also switch to libbase logging.

Bug: 25170618
Test: run build_verity_tree to calculate size & generate a tree
Change-Id: I88a2ce077292e35fe069d00000a9e59dbeb95317
7 files changed