Refine module syntax in source scripts.

Self-execute the exporting with the module closure
passed in.
Clean up tip test markup.
Fix possible naming conflict in core's createPlugin.
Refactor core's noConflict support with safeSet.