[Runtime] Implement 'onInstalled' event API.