General contractors and building firms compete on reputation and referrals — and increasingly, on what shows up when a prospect searches online.