Flatten out constants.data into constants

Add in some $sce for messages; note that Object.freeze(constants) is not
actually doing much.
Make tooltips work with SCE

Tooltips overall need some cleanup work, but that can wait