Moved code for JSON handling and metadata/metadata container into the Common project from the Foundation project.