added hiera_resources function

Allow resources to be defined in hiera similar to hiera_include.

http://projects.puppetlabs.com/issues/19516