#9 convert attrib templates

Adds templates
Convert the factor code to Ohai plugin.
I have taken off the direct editing of attributes, minus those already set by default.