Got metadata field editing roughed in.

refs #5356

Added basic functionality for defining fields in the database,
displaying them to the user, and storing user responses.