Fixes #6566 - renaming a node now resets the certname on provision

If use_uuid_for_certificates is true, reuse the certname UUID value.
If false, then reset the certname if it does not match the hostname.
Fixes #6446 - Forbidding non-json POST/PUT requests in v2
fixes #6852 - `rake log` added to log ActiveRecord changes to stdout