Separated staging log streaming from std error and out streaming, so
that staging log can occur during app staging. Forked application
restart into a separate job for V2, to allow staging streaming to occur
while staging, as in the older version, log streaming only happened
after an application started. Also added wait time when refreshing app
instance stats for v2, as it throws exceptions if the app is being
staged.