#9 convert attrib templates

Adds templates
Convert the factor code to Ohai plugin.
Doing that here is non-trivial and prone to breaking.