Closes #35, COOK-4679, modernize provider

This implements why-run mode and uses inline resources (if defined).
The other parts of #35 were addressed in e5fc6d8.