Undergoing deep code refactor, project unuseable until finished

- Layout foundation for the refactored main.js
- Progress is tracked by todo.TODO
- Reorder todo.TODO to better reflect priority of each task