Builds and passes tests for the new cop view. Only the happy path so far. Error responses from the server are currently being logged to the console instead of properly handled. No tests yet for that either. The problem mentioned in the last commit was a confusion over the 422 unprocessable entity response when the validation failed for a non-unique badge_number. Protect_from_forgery is turned off for the testing environment so the csrf thing mentioned was not really a thing.