Make todo editable on double click, clear main input when todo added, minor refactorings
Hide clear completed button if last completed todo is removed
Cleanup chain code
Handle todo editing