Fix issue #29.

@pcl @edwardsa
Below is just a noisy way of saying that UrlFields is now a nested class of Resource rather than an inner class of Method.