kloud: Ping the klient to check the machine state.
kloud: Ping the klient to check the machine state.

Just checking Kontrol if the klient is registered leads to a bad UX
because when a klient is disconnected, Kontrol still shows it as
registered before a certain timeout.

We now ping the klient to see if it is running. In other cases, we just
ask AWS about the machine state again.

Client side is calling klient.ping to see if it is running instead of
asking kloud now. Hopefully these changes will improve the current
rate-limit situation.

rjeczalik/koding,acbodine/koding,usirin/koding,sinan/koding,gokmen/koding,andrewjcasal/koding,rjeczalik/koding,szkl/koding,sinan/koding,drewsetski/koding,usirin/koding,cihangir/koding,drewsetski/koding,acbodine/koding,alex-ionochkin/koding,szkl/koding,mertaytore/koding,acbodine/koding,jack89129/koding,mertaytore/koding,mertaytore/koding,kwagdy/koding-1,jack89129/koding,jack89129/koding,alex-ionochkin/koding,andrewjcasal/koding,gokmen/koding,mertaytore/koding,koding/koding,usirin/koding,gokmen/koding,rjeczalik/koding,alex-ionochkin/koding,rjeczalik/koding,kwagdy/koding-1,acbodine/koding,sinan/koding,usirin/koding,mertaytore/koding,sinan/koding,rjeczalik/koding,rjeczalik/koding,szkl/koding,koding/koding,szkl/koding,gokmen/koding,drewsetski/koding,cihangir/koding,drewsetski/koding,rjeczalik/koding,drewsetski/koding,drewsetski/koding,drewsetski/koding,gokmen/koding,cihangir/koding,andrewjcasal/koding,koding/koding,kwagdy/koding-1,sinan/koding,koding/koding,usirin/koding,andrewjcasal/koding,jack89129/koding,gokmen/koding,alex-ionochkin/koding,koding/koding,cihangir/koding,rjeczalik/koding,jack89129/koding,sinan/koding,jack89129/koding,sinan/koding,alex-ionochkin/koding,usirin/koding,andrewjcasal/koding,andrewjcasal/koding,acbodine/koding,cihangir/koding,szkl/koding,acbodine/koding,szkl/koding,kwagdy/koding-1,sinan/koding,alex-ionochkin/koding,drewsetski/koding,kwagdy/koding-1,koding/koding,mertaytore/koding,acbodine/koding,koding/koding,gokmen/koding,usirin/koding,andrewjcasal/koding,jack89129/koding,gokmen/koding,koding/koding,usirin/koding,szkl/koding,szkl/koding,mertaytore/koding,kwagdy/koding-1,acbodine/koding,cihangir/koding,andrewjcasal/koding,alex-ionochkin/koding,jack89129/koding,kwagdy/koding-1,cihangir/koding,mertaytore/koding,kwagdy/koding-1,alex-ionochkin/koding,cihangir/koding