Fix memory leaks.
Defer loading of assets to a seperate thread and render splash screen in that process.