Threading

rough start on threading, resume from pause doesn't work, and presumably
ccd_client.py doesn't work either
Resume now works
Threading works and is tested