metadata editor

Adds nonjavascript version of metadata editor, csv preview now has links
to metadata editor if you are logged in as a user who can edit the
metadata
Merge branch 'metadata-editor'