Add dump attributes and recipe to metadata.rb.
Add chef/dump_attributes to default attributes.
Re-factor dump_attributes for compile time, execution logic in control flow and include run_list.