#4356: Added custom context menu

Also, connected in to TextViewer.