Fixes for the deployment function and updated path to use git://github.com/pmorie/simple-jbosseap as the example app