Add toggling for map editing features

These are features such as geocoder reverse geocoding,
detours editing and soon to come geocoder point dragging (not
yet implemented)

This commit also fixes detours management, which was
registering event listeners in a clumsy way.