Capistrano 3 implementation

Port to Capistrano 3. The DSL inclusion is copied over from Capistrano, and is a bit hacky. Might revisit that.