Implement context menu support for list items.

Add additional clarifying comments.