refactored flexloader.addResource to accept a non-named resource
added an 'autoload' utility method for autoloading widgets
changed the way extension functions are queued and executed so that the autoload features works even after initialization