added onTransitionEnd to popAll and added test cases for it
added onTransitionStarted handler
Merge pull request #66 from pentateu/topic/layers_popall_callback

added onTransitionEnd to popAll and added test cases for it