Add a method to help app devs handle Squirrel events

People will probably mess this up by not exiting after handling events, which will hang the installer. Instead, make it easy to handle it.