fix #902
Style corrections

'if()' → 'if ()'
'for()' → 'for ()'
Refactor OS X updater

Went and rewrote half of it in an actually sane manner, recursive functions > nested loops.
Light tray icon option
Merge branch 'pr921'
Merge branch 'pr922'
Merge branch 'pr923'
Merge branch 'pr926'