Swap out $ref in mysociety schemas as well

This was causing an issue where some of the schemas had their $ref
swapped out, and others didn't.
Handle embedded documents in mongoose json schema

If a json schema references another json schema we traverse the whole
tree to make sure all fields are defined for the document and its
subdocuments.