Functions to use karaf in capistrano.