Sample using vSphere PerfMgr API

Originally contributed by @lamw some additional clean up makes the sample conform to project standards.