[COOK-3116] smartos support (merged [COOK-3328] Refactor main.cf template and attributes)

pull request for http://tickets.opscode.com/browse/COOK-3116

This request replaces #27.