Rename Document#metadata to Document#__metadata:

Allows other libraries and applications to have fields named metadata if
they like, since it's fairly common.

[ close #3364 ]