core: Rename from "engine", flesh out a few more data structures