Refactor generator runtime generatorWrap to reduce code duplication

Review URL: https://github.com/google/traceur-compiler/pull/717

Closes #717.
Loader module needs to use an anonymous module