fix logic when deciding whether to send a heartbeat or not (should send every 2 minutes. should send if the current file changes. should always send if is a write event). format User-Agent like other plugins with kate-wakatime at end.