Convert exchange to use snapshot ids

http://manage.dimagi.com/default.asp?108063#628269