Uri template support

Replacing the dynamic urls via blocks in pr #26.