Add MetricsServlet for Spark metrics system
MetricsServlet code refactor according to comments
Merge pull request #784 from jerryshao/dev-metrics-servlet

Add MetricsServlet for Spark metrics system