CDAP-412 REST endpoint to expose Service methods

Endpoint: ``/apps/{app-id}/services/{service-id}/endpoints-exposed``

Example output: 
```
[
    {
        "method": "GET", 
        "path": "/v1/product/{id}/catalog"
    }
]
```


hum.. that's why you are using a regex to replace multiple "/" with one "/". But why need to replaceAll? I don't quite get it.