Todo unchecking is still buggy, but needs a bunch more work to make it happen.
Also added some useful globals to the standard layout for later access by application.js.
when you update a todo, the click event was added to the updated todo, but also to all other todos. This causes a click on toggleNote to execute several toggles