Fix issue #29.

@pcl @edwardsa
Visits each method of the resource and gathers the url substitutions into one set that is accessed from the .ftl.