Add logic to lazily create the global runtime filesystem structure.
Refactor globals array to be named runtime.