Factor out loading & running of DSOs

BUG=
R=viettrungluu@chromium.org

Review URL: https://codereview.chromium.org/691653002