[server] Fetch all the initial messages in one query
Test Plan: Verify that sidebar source messages cause only one additional query
Reviewers: ashoat
Reviewed By: ashoat
Subscribers: KatPo, zrebcu411, Adrian, atul, subnub
Differential Revision: https://phabricator.ashoat.com/D589