Add support for the endAnnotation message

This required adding an object to store the annotation ids for annotations that
have been shown before, otherwise when the annotation is removed from the
screen, it will immediately be shown again.