(maint) reduce log level duplication

Prior to this commit the interactive Puppet applications, `apply`,
`inspect`, `resource` had duplicate logic for setting log level based
on command line options.  This commit consolidates that logic into a
method in `Puppet::Application`.  

This functionality is covered by existing tests.