#9 convert attrib templates

Adds templates
Convert the factor code to Ohai plugin.
Same here with enabling the attribute if we want to test this block of code.