Initial implementation of metadata table upload via web browser (#436). Code cleanup.