ONMjs core and observer routines ported to revised ONMjs.Model.