Added function callback to WinSparkle

* added enumeration for different callback signals, e.g. closing wxApp
Added code documentation to callbacks, code clean up

* code documentation added for callback function
* removed unnecessary code and reverted code