some fixes to the scaffolds. Added the Model to provide data to templates
AG-7 #comment refactored the core
large but still untested code reorganization
debugged the site scaffold