Added remaining functionalities, edit and delete ITEM, some improvements
to come in the next commits
Major code cleanup in index.html, fixed a bug in testing routines.
refactoring of device.js and huge parts of todolist.js, added some
inline documentation, generalized error messages: now everything comes
via console, but one can uncomment DOM logging in todolist.js