How pigeons, cats, whales and even robotic catfish have acted as spies through the ages