Added support for gradle console
Improved staging.groovy for use outside Spoon