Prime restore

http://manage.dimagi.com/default.asp?145225

@czue 
Could speed this up by adding some concurrency but don't want to clog the celery queue. Any thoughts?