Massive refactoring to make MFFS compatible with the new open source Resonant Engine (formally CalCore). Updated build script accordingly.