Merged Dawid's contributions with resource loading improvements and more.  Added CONTRIBUTIONS.txt file and updated all copyright headers.