Better statistics on closed and merged PRs

@nedbat 
hmm ok I'm only familiar with the datetime module, I'll look into it.