Rewrite for Capistrano v3

Full rewrite for Capistrano v3.