Make extend-detection use startswith _and_ endswith
Add some todos
Do no boilerplate partialing of callbacks
Add lazy submenus for popups