Move where we set the resource format to qa format
Move where we set the resource format to qa format

Have changed _save_qa_result to return the qa object (that it finds or
creates) so that we can do the format check in the outer update_package
loop.  This way we can be sure we only create one revision.

ckan/ckanext-qa,ckan/ckanext-qa,ckan/ckanext-qa