Add promises inside the generator.
Merge branch 'master' of https://github.com/dtklee/js-model-generator