Convert to new PS event registration interface

Required after adobe-photoshop/generator#72 is merged