fetching document via REST returns entire document structure when envelope=true

I had to rename "snapshot" to "data" in a couple of places, but it did not appear to break anything.  It's working in ethersheet at any rate.  :)  

I didn't verify, but looks like this solves the issue of fetching meta data as well, as it should be included in the response.