add configurable option to clone products without copying original images

Fixes #4711
The event object needs to be passed into js function.
Temporarily lockdwon i18n version to fix build.
Fix build.sh for sample.
Loosen friendly_id restriction.