Capistrano 3 support

In addition to supporting capistrano 3, also splits the capistrano integration code by version to make it easier to support future version