Implement global shortcut API, fixes #439

@zcbenz, please take a look! 
And thanks for @orzFly on windows platform implementation.