From http://wp-snippets.com/list-all-categories-with-posts/