Move DataManager functions out of twrpTar.cpp

Change-Id: I943318afe787ff4ede724fa0bc77ebc6a3ba0c8b
Merge "Move DataManager functions out of twrpTar.cpp" into android-4.4