Quantum Cryptography and Long Distance Bell Experiments: How to Control Decoherence