Better and simpler API for popups and icons (issue #9)