Add support for hiera defined upstream and vhost

In some case we don't want to create a module if we want to use nginx upstream and vhost, which are defined as resources. Added hiera create_resources so that upstream and vhost can be defined in hiera.