Add/Reset annotations in graph controller and scripting-api

This simply exposes the addAnnotation/resetAnnotation API from the
lab-grapher, and makes it available to the scripting-api.

[#74688264]