Added separate QThread class for fetching data and pinging.

Application no longer freezes when the servers are being pinged.