logging in within n seconds after logging out no longer sends notifications

+ notifications do not fire if user logs out and in again within a set
time
+ renamed notify to sendPushoverNotification
+ ' to "
+ move initialisations to the top of the script