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.
4 jobs for adinapoli/issue-287 in 88 minutes and 33 seconds (queued for 4 seconds)
Status Job ID Name Coverage
  Stack
passed #10565
stack

00:03:52

 
  Cabal
passed #10566
cabal

00:37:04

 
  Bench
passed #10567
bench

00:19:21

 
  Test
passed #10568
test

00:28:15