add implementation and js bindings for publishInstall & logEvent