'Return the GET parameters (querystring in the URL).'

@lazy
def get_params(self):

    query = urlparse.urlparse(self.path).query
    return {key: (value[0] if (len(value) == 1) else value) for (key, value) in urlparse.parse_qs(query).items()}
