FileUpload: fix backwards compat (PermissionCategory)

Grabbing peregrine's fix in for review before it hits master.

FileUpload's only hurdle to 2.1 compatibility is the use of CategoryModel:PermissionCategory so we're looking at a workaround of detecting its absence and using a fork of it.