Extract the android_bundle download logic into a separate code.

+ Refactor parts of async/sync child process calls