Store class which is used to store all the resources, tasks, middleware and events.
Protected
Readonly
This is because we can have multiple overrides at once, and the final override is the one that is used.
middlewares are already stored in their final form and the check for them would be redundant
Cleanup
When this is called, all overrides should have been stored in the "overrides" store.
If you want to register something to the store you can use this function.
Store class which is used to store all the resources, tasks, middleware and events.