Bug 4772 - stats page uses oldstyle urls (second PR)

http://bugs.dwscoalition.org/show_bug.cgi?id=4772

This pulls the same functionality over from the original pull request, then addresses the stype & readability points brought up there. ^_^; https://github.com/dreamwidth/dw-free/pull/337