Use Foodcritic 4.0.0
Add metadata.rb

Fixes FC031 and FC045 (half of #1).
Don't run git commands with an execute resource

Fixes FC040 (quarter of #1).