Introduced a factory for codegen data containers

Missing model elements added
Introduced a factory for codegen data containers

Moved parameter/response generation code to
dedicated methods so that subclasses may extend it
Merge pull request #342 from martoe/codegenfactory

Introduced a factory for codegen data containers