handler for animation end was done after applying css anim. fixed.
updated code style and comments
documented internal variable
refactored spin.getPanel() and updated tests
refactored click handler to use panel helpers and added comments
moved and refactored isBreadCrumb() helper
added breadcrumb.getPanelId() helper and refactored code to use it
updated the element on which the click handler is set
merged click handlers into a single one