Rettigs/refactor

This refactor almost completely rewrites the cookbook, adding lots of new features as well as bugfixes and improvements over the current version.  I just finished doing some basic testing on it and it seems like it should be good enough to use in production, but I'd like to look at this with someone before pushing it just to make sure I didn't leave anything out or overlook anything serious.
@rettigs Yeah, in this case it isn't a huge deal, but ruby treats <code>ensure</code> differently than code blocks that follow later, and is a [best practice](http://blog.rubybestpractices.com/posts/rklemme/003-The_Universe_between_begin_and_end.html)