Fixes the display of tabs on the user show page and adds tests.
Fixes #441.
Merge pull request #666 from afred/better-tab-behavior

Fixes the display of tabs on the user show page and adds tests.