Allows file upload using rails.js and other bug fixes to import

Import now uses the functionality provided by rails.jsand fixes to special character handling and invalid headers bugs found during testing.