Factor out shared success callback from .module and .import implementations. Simplify promise usage in .define and .load implementations.