Added ability to set onPause/onResume callbacks

This feature proven itself usefull for me, so i decided to share it :)
I will provide basic "how to" for readme.md later.