Regenerate schema on resource file re-uploads

Refactor to use new IResourceUpload plugin interface (on CKAN's b2
branch), this removes a lot of code.