Use new chef_object query name dispatch for create and update
Use chef_object dispatch for set_created and set_updated
Use chef_object:id in delete

This also switches user deletion to be by_id instead of
by_username. Not sure why we decided to go by name previously, but
this way we can use the same code.
Dialyzer fixes for data_bag_exists and environment_exists