api for pause and resume

2 new functions: pause and resume; also 2 new events: pauseautoplay and resumeautoplay. Pause save current interval, resume start autoplay with remain interval. Some little changes in stopAutoplay.