Threading fixes for ZMQ work. Also moved radio optparse options into radio.py.
Better exception handling in sql.py