change alot of global declarations to static to limit scope
change alot of global declarations to static to limit scope

dmitriykuptsov/yubikey-personalization,Yubico/yubikey-personalization-dpkg,eworm-de/yubikey-personalization,dmitriykuptsov/yubikey-personalization,Yubico/yubikey-personalization-dpkg,Yubico/yubikey-personalization,Yubico/yubikey-personalization,dmitriykuptsov/yubikey-personalization,Yubico/yubikey-personalization-dpkg,eworm-de/yubikey-personalization,eworm-de/yubikey-personalization