fix logic when deciding whether to send a heartbeat or not, change user agent string

* Should send heartbeat if the current file changes
* Should always send heartbeat if is a write event
* Format User-Agent like other plugins with kate-wakatime at end