Use select_related() for the user activity page

This page was relatively fast, but adding this reduces the number of
queries tremendously.  On my dev machine it went from 102 to 30.
gh-1463 further reduces that to 10.