Initial rewrite of the cookbook. Moved files to templates, using a lot more configurable options.