Site search now handles domains, published snapshots, and unpublished snapshots appropriately

Fixes #3639 
FogBugz ticket here:
http://manage.dimagi.com/default.asp?118826#679717