Encapsulated scaffold template operations into Commands.

Created encapsulation for scaffold resources, in the ScaffoldResource class.