Update to scriptable build program.

This allows switching to a multi-level build process where all data can be compressed together.
Revert back to single pass build to keep the logic simple.