Revert "Revert "Merge pull request #134 from alphagov/index-attachments""

This reverts commit 96157fccc3f704846af76dc68c5636e518f578c7.

Adding back in the nested schema