Added custom ClientDependencyLoaded and ClientDependencyDone events when...

... resources are loaded.

This will use jQuery event's if available or else internal code.

Eg:
$(document).on("ClientDependencyDone", function() {
	/* Some custom code */
});
Or
ClientDependency.Sys.addEvent(document, 'ClientDependencyDone', function() {
	/* Some custom code */
});

And where data is the script url.
$(document).on("ClientDependencyLoaded", function(event, data) {
	/* Some custom code */
});
Or
ClientDependency.Sys.addEvent(document, 'ClientDependencyLoaded', function(event, data) {
	/* Some custom code */
});