Implemented multi-editing in datatables
Enabled file upload fields, term selection, template selection etc. in
study edit datatable. Also fixed a lot of bugs.