handle multiple results for FormQuestionSchema

Someone managed to create two records for the same key causing this bug: http://manage.dimagi.com/default.asp?150357

Since the docs should be unique based on the `domain`, `app_id` and `xmlns` properties I decided to use them to generate the ID.

Had to do a little extra work to migrate / get rid of existing docs.