Updated status handling and otherwise refactored todo_core.js