implemented a heartbeat request which is calls the server every 15 minut...

...es to prevent a session timeout

should fix #527 and #1934

cc @LukasReschke