replace civetweb with a QTcpSocket subclass

-closes #1315