(#20997) Print and remove warnings from Forge

The Puppet Forge may return data with a _warnings key containing
warnings generated while servicing the request. This commit prints out
all warnings and then strips the warnings from the request.