(CDAP-1090) Feature/metrics search

Search for metrics context and available metrics.
https://issues.cask.co/browse/CDAP-1090
See above. Reduce the number of new `byte[]` being created.