Split build into inline definition of GUI and wrapped def.
Update test pages.
Update Gruntfile.
Update dependencies.