Use capistrano's multistage extension