Factory objects

Factory.amdify returns source code of the factory wrapped as AMD module.
Factory.cjsify returns source code of the factory wrapped as cis module.