Add domain facets

implements http://manage.dimagi.com/default.asp?124547#715906