Re-factored the runOptimizer task significantly pulling out a few things into other settings and tasks. Of significance is the appBuildProfile task. This task now inlines the JS required to generate the app.build.js file. Users can override this with greater ease as part of their own build configuration. In addition the fragility of the "last line processing" has now been removed.