[titan] add ca pmt, add sock read/write, write error log to /media/hdd/titan.err (changeable in titan.cfg)