Initial implementation of newinstance() with closures
See xp-framework/rfc#279
Convert a couple of showcases to use newinstance with closures
See xp-framework/rfc#279