removed unused variable
moved hockeyapp init to the end of method

otherwise it first executes showMainApplicationWindowForCrashManager and
everything that follows, and only at the end it comes back to finish
this method
[#43] added lock screen to main window
[#43] added "Lock Wallet" entry to menu
[#43] lock wallet when computer goes to sleep
[#43] allow user to manually disable the lock screen
[#43] don't process external events while locked