Convert modules to use AMD dependency wrappers.