client: unify menus
client: disable context menu items lacking permission
fix context menu popping up outside document boundary

closes #340