Splits shared/annotation.js into core/ and display/

Last task in #3474