complection class SCgTemplateMode && SCgTemplate

1)add deployment
2)add folding
3)add SCP code generation
4)fix bug with ghosts
5)fix move bug with ghost
6)completion of existing templates

Levshuk && Aleinikov