JSON API: Add new v1.1 media endpoints.
Return the list of allowed file types so a dev can determine what they are allowed to upload.

Props @justinshreve