onOptimize Hook

This allows people to provide a hook to the Require.js optimize function, this enables additional tooling after the build is complete by passing the output of the build.