update url template tags to work in django 1.5
clean up paginator query string template tag
extend base template