Implementing more ECS.

Core functionality complete? Also starting on app work in main.js, but
didn’t get very far.