refactor(ionTabs): cleanup, better tests, many fixes

Fixes #634. Fixes #334. Fixes #175. fixes #646.