Move editing ID to list component, pass state to items

Per suggestion from issue #1, move the ID of the currently editing item
to the list component so state is kept in only one component.

Fixes #1.