Replacing deprecated sha with hashlib.sha1, explicitly setting key/certs for SiteDB cals, changing imports to support filemetadata 

fixes CAF-160 CAF-184 CAF-147