fixups for graphite-web

I don't like `rstrip` because this will also trim something like:  `foo.` or `foo.....*******....`.

I prefer to check `if query.pattern[-2:] == '.*': query.pattern = query.pattern[:-2]` or similar.