Issue #27 uritemplates

This builds on #26 pull request.