Unify CSV & JSON form upload handlers
This commit modifies the backend code to convert the input CSV into an `NgramsList`, so that we can reuse the JSON API for the upload.
This commit modifies the backend code to convert the input CSV into an `NgramsList`, so that we can reuse the JSON API for the upload.