Move Capistrano tasks to lib/capistrano and update syntax for Cap 3