Using atpackager for the build.
Adding an atpackager visitor to generate a file containing a set of calls to require.