Migrate to gelato framework

This build has been manually added into major update branch, but is being merged to preserve the tedious workflow.