Add support for URI Template

@rprieto @nguyenchr 
@nguyenchr , good point. However I prefer to pass it as parameters instead of using global variables. In the future, we may need to use different values for different url.