Added keepalive ability

* Created Keepalive class used to keep a ServerConnection alive
* Adding ping 'calculation'