Bugfix/duplicate corpus

Keep the user from trying to have duplicate corpora names. If the user tries to create a new corpus with the same name as one that exists, or tries to edit one in a way that this happens, the request will be replied with a 400 (422 is arguably a better response, but it is not exactly standard, so we'll keep 400 for now).