Be less restrictive about .api.
Update .api.
Fix model.on running events in the wrong context.