1. Added waiting process for Groovy scripts which uses other bundles.
2. Divided DefaultLoader.groovy into three groovy class files because RootLoader can't load the class in the groovy script which has multiple class definitions.