Update .gitignore.
Improve resource loading.