Refactor: MaterialArchive is now a C++ class with a C wrapper API

Todo: Use the de::Uri's C++ interface directly.
Refactor|MaterialArchive: Const-correctness refactorings to MaterialArchive
Post merge fixes