move metadata from user's work space to the rmarkdown package environment

then we will have to use `rmarkdown:::metadata` to access the metadata

or we can export the object `metadata` to avoid `:::`, but I'm slightly in favor of not exporting it