CDAP 544 - MetricsTable API Put to use Long instead of byte array

https://issues.cask.co/browse/CDAP-544
Consider making a utility function that does this.