Reworked how spelling was done for BZ#1068911 - Optimise spell checking memory usage.
Reworked how context menu links are opened for BZ#1079827.
Fixed context menu issues in firefox introduced by previous commits.
Fixed the suggestion insert code to use the ace session logic so it doesn't break the undo manager for BZ#1114941.