LDEV-1971From a tip from a Fiona, the context path "rams/" or "lams/' is actually stored in the db, so we can get it from there instead of getting it from the context of the request
LDEV-1989 Stopped author from doing cut/copy/paste (keyboard shortcut) actions on activities when a dialog is open as it was messing with cut/copy/paste of text in the dialogs