Add phased restart to capistrano recipe.

Add phased restart task.
Little refactor. Do not use fetch when no needed.