Update mechanism: split update.c
Move cryptography specific functions into their own file, together with functions downloading public key / signatures Factorize common code for generating signatures (hash_sha1_from_*) Remove unused update_WaitDownload (was OSX specific)