metadata navigation uses resource chain
simplifiy if statement
set class to active on current metadata sub-tab
set metadata tab to active if in metadata
make content tab active if in sentences view
move helpers for activating tabs into nav controller
Removed old metadata views, fixed vertical tab bar space.
Merge pull request #512 from ontohub/fix_metadata_navigation

Fixed metadata navigation. Fixes (at least) #478.