more useful debugging output

added `debug()` method as wrapper around `Chef::Log#debug`, which includes
calling method's name in output.  added lots of new debug statements.  and a couple minor code touchups to help
minimize future bugs.