Fix the API docs generator.

The webapi docs build process was still using the deprecated
allowed_item_mimetypes and allowed_list_mimetypes fields. Update it to use the
consolidated allowed_mimetypes field.

Testing done: Built the API docs.
Reviewed at https://reviews.reviewboard.org/r/4832/