Added function callback to WinSparkle

* added enumeration for different callback signals, e.g. when showing or closing update dialog
Added code documentation to callbacks, code clean up

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