Switch to Zenoss 5 writeMetricWithMetadata() API.

Fixes ZEN-14629.
Merge pull request #15 from zenoss/feature/ZEN-14629

Switch to Zenoss 5 writeMetricWithMetadata() API.