Fixed PHP notice which was shown when creating one model.
Cleanup
Some cleanup. Moved webtools.config.php generation code to templates.
Cleanup