Add register_shutdown_function() to bootstrap for earliest init we can
get
Get application object from ResourceManager
Remove shutdown() from Application
Correct paths for vendor and core