Allow decorator-style construction of URL pattern lists.

def register(self, pattern, view=None):
        '''Allow decorator-style construction of URL pattern lists.'''
        if view is None:
            return partial(self.register, pattern)
        self.patterns.append(self._make_url((pattern, view)))
        return view