test for http://jira.grails.org/browse/GRAILS-9627
fix the repositories being overridden by multiple repositories { } blocks
Merge branch '2.2.x'
fix problem with functional test phase setup/cleanup that was causing functional test suite failures
fix for GRAILS-9328 + refactored HibernateCriterionAdapter + test case
ensure serverContextPath is configured prior to test run
test case fix
errors were being hidden because something was overriding System.out/System.err... we add a check in GrailsConsole that this is not the case and restore the original. Also added some more leniency to startup errors with the functional test preparation configurer
fix Config being null during run-app when running functional tests
fix for GRAILS-9817 "Plugin 'lib' directory not included on forked mode runtime classpath"
Merge branch '2.2.x'

Conflicts:
	grails-bootstrap/src/main/groovy/org/codehaus/groovy/grails/cli/fork/ForkedGrailsProcess.groovy
fixed merge error
Merge pull request #324 from tudor-malene/GRAILS-9328

Grails 9328