#9 convert attrib templates

Adds templates
Convert the factor code to Ohai plugin.
This really should be managed by the modules cookbook however I recommend you use [our fork](https://github.com/osuosl-cookbooks/modules-cookbook). Take a look at the [osl-openstack](https://github.com/osuosl-cookbooks/osl-openstack) cookbook for an example of how to use that via an attribute.