Adds resource loading abstraction that matches the single executable pattern.
Fix type warnings, style warnings and typos.