encoding.EncodeArray and DecodeArray support multiple formats
added /metrics endpoint
Merge pull request #21 from ryandotsmith/api

Implement metrics read API.