Quick hack to get full preview working.

Pairing with @santiaago
Honor the autoupdate flag

This also cleans up the setting of the onchange handler so that it
can be done just once on ACE initialization.

Pairing with @santiaago