Adding untested code to eventtap.
Fixed repl.open to put icon in dock on re-openings; fixes #234.