Register for file URL UTI as per current recommendation.
Use kUTTypeWebArchive

Also change some casts to id