coppied model gen code to ModelGenerator, compiles but is not used, passes unit tests

git-svn-id: https://roadrunnerlib.googlecode.com/svn/branches/refactor_modelgen@890 c0027639-9190-0b57-01eb-f09a03790dae
partial refactor now passing unit tests

git-svn-id: https://roadrunnerlib.googlecode.com/svn/branches/refactor_modelgen@891 c0027639-9190-0b57-01eb-f09a03790dae
Merge branch 'master' of github.com:AndySomogyi/roadrunner