#9 convert attrib templates

Adds templates
Convert the factor code to Ohai plugin.
Took this out until a better solution is found