#9 convert attrib templates

Adds templates
Convert the factor code to Ohai plugin.
This should be commented out and fixed later.