#9 convert attrib templates

Adds templates
Convert the factor code to Ohai plugin.
@jordane I have taken out that ohai fact since it is used only in external dashboard, which we are using from elsewhere.