Should it appear from the affidavits of a party opposing the motion that he cannot for reasons stated present by affidavit facts essential to justify his opposition, tile court may refuse the application for judgment or may order a continuance to permit affidavits to be obtained or depositions to be taken or discovery be had, or may make such order as is just.