Added callbacks on reaching end of slide and beginning of slideshow

Added callback functions 'endcallback' and 'begincallback' to Swipe.
This avoids some explicit codes to be written by external application in case required.