Refactoring how active tabs are selected in Tab and Accordion

Adding the selectTabs method makes it easier to customize Tab and
Accordion functionality in derived widgets and addons.
Preventing clicks of tab elements from triggering navigation
Merge pull request #67 from javallone/tab_refactor

Tab refactor