Correctly highlighting initially selected tab.
added tests for tab highlighting
slight refactor to tab highlighting test
changes as per review, refactored huge functions into smaller ones
Merge pull request #342 from aodn/initial_tab_highlight

Initial tab highlight