Shift model piece into mimic's api file and fix edit.js for file input types