Switching from endless loop to app idling.

Replacing the endless repeat with an on idle statement. Timing probably
needs more tweaking to lower CPU usage.
Fixed first run check.

A typo in the plist file path prevented isTheFirstRun() from returning
the correct value.
Merge pull request #17 from moritzz/master

Switching from endless loop to app idling, Fixing first run check