Use Chef REST API

New PR in place of #19 that is a bit cleaner and rebased from the latest master.