First stab at making this cookbook multi platform

I know it’s a big PR, but I tested it quite good on both Ubuntu 14.04
and CentOS 6.5 on both of which it now works great… So I hope this can
be merged asap and improvements/fixes can be based on this updated
multi platform code instead of the current Ubuntu only version…