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.
update header file with changes to member variables
Merge pull request #8 from wakatime/master

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