Refactor activity stream

This also converts more of the SQL strings to squeel. The remaining strings aren't convertible as is. They may need additional joins, etc.

#52